当前位置:网站首页>9.Life, the Universe, and Everything
9.Life, the Universe, and Everything
2022-04-23 06:08:00 【linsa_ pursuer】
Your program is to use the brute-force approach in order to find the Answer to Life, the Universe, and Everything. More precisely... rewrite small numbers from input to output. Stop processing input after reading in the number 42. All numbers at input are integers of one or two digits.
Example
Input:
1
2
88
42
99
Output:
1
2
88
package com;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner s = new Scanner(System.in);
while (s.hasNextInt()){
int n = s.nextInt();
if(n==42){
break;
}else{
System.out.println(n);
}
}
}
}
版权声明
本文为[linsa_ pursuer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220533259694.html
边栏推荐
- LDCT图像重建论文——Eformer: Edge Enhancement based Transformer for Medical Image Denoising
- 線性代數第二章-矩陣及其運算
- Get the value of state in effects in DVA
- Pyqy5 learning (2): qmainwindow + QWidget + qlabel
- Pytorch notes - observe dataloader & build lenet with torch to process cifar-10 complete code
- 数字图像处理基础(冈萨雷斯)一
- Practical operation - Nacos installation and configuration
- ValueError: loaded state dict contains a parameter group that doesn‘t match the size of optimizer‘s
- EditorConfig
- Pytorch learning record (7): skills in processing data and training models
猜你喜欢
![Paper on Image Restoration - [red net, nips16] image restoration using very deep revolutionary encoder decoder networks wi](/img/1b/4eea05e2634780f45b44273d2764e3.png)
Paper on Image Restoration - [red net, nips16] image restoration using very deep revolutionary encoder decoder networks wi

Pytorch学习记录(五):反向传播+基于梯度的优化器(SGD,Adagrad,RMSporp,Adam)

Anaconda

Fundamentals of digital image processing (Gonzalez) II: gray transformation and spatial filtering

RPC must know and know

Pytoch -- data loading and processing

You cannot access this shared folder because your organization's security policy prevents unauthenticated guests from accessing it

Pytorch learning record (7): skills in processing data and training models

Pytoch learning record (x): data preprocessing + batch normalization (BN)

LDCT图像重建论文——Eformer: Edge Enhancement based Transformer for Medical Image Denoising
随机推荐
Understanding and use of tp50, tp90 and tp99
Filebrowser realizes private network disk
深度学习基础——简单了解meta learning(来自李宏毅课程笔记)
Ptorch learning record (XIII): recurrent neural network
Linear algebra Chapter 2 - matrices and their operations
线性代数第一章-行列式
去噪论文阅读——[RIDNet, ICCV19]Real Image Denoising with Feature Attention
Algèbre linéaire chapitre 1 - déterminants
Pyemd installation and simple use
Pytorch学习记录(十三):循环神经网络((Recurrent Neural Network)
Pyqy5 learning (III): qlineedit + qtextedit
PHP processing JSON_ Decode() parses JSON stringify
解决报错:ImportError: IProgress not found. Please update jupyter and ipywidgets
Graphic numpy array matrix
Fact final variable and final variable
The attendance client date of K / 3 wise system can only be selected to 2019
Pytorch learning record (XII): learning rate attenuation + regularization
Configure domestic image accelerator for yarn
The bottom implementation principle of thread - static agent mode
Pytorch Learning record (XIII): Recurrent Neural Network