当前位置:网站首页>Basic types of 100 questions for basic grammar of Niuke
Basic types of 100 questions for basic grammar of Niuke
2022-07-08 00:40:00 【InfoQ】
Niuke basic grammar must be brushed 100 Basic types of questions
BC3 Niuniu learns to speak - Integers
describe
Input description :
Output description :
Example 1
3
3
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
System.out.println(a);
}
}
BC4 Niuniu learns to speak - Floating point numbers
describe
Input description :
Output description :
Example 1
1.359578
1.360
import java.util.Scanner;
public class Main{
public static void main(String[] args){
float a;
Scanner sc=new Scanner(System.in);
a=sc.nextFloat();
System.out.println(String.format("%.3f",a));
}
}
BC5 Niuniu learns to speak - character
describe
Input description :
Output description :
Example 1
a
a
import java.util.Scanner;
public class Main{
public static void main(String[] args){
String c;
Scanner sc=new Scanner(System.in);
c=sc.nextLine();
System.out.println(c);
}
}
BC6 The second integer of Niuniu
describe
Input description :
Output description :
Example 1
1 2 3
2
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner in=new Scanner(System.in);
int a[]=new int[3];
for(int i=0;i<a.length;i++){
a[i]=in.nextInt();
}
System.out.println(a[1]);
}
}
边栏推荐
- 手写一个模拟的ReentrantLock
- 8道经典C语言指针笔试题解析
- 攻防演练中沙盘推演的4个阶段
- new和delete的底层原理以及模板
- [programming problem] [scratch Level 2] draw ten squares in December 2019
- Basic principle and usage of dynamic library, -fpic option context
- The standby database has been delayed. Check that the MRP is wait_ for_ Log, apply after restarting MRP_ Log but wait again later_ for_ log
- Interface test advanced interface script use - apipost (pre / post execution script)
- The method of server defense against DDoS, Hangzhou advanced anti DDoS IP section 103.219.39 x
- Installation and configuration of sublime Text3
猜你喜欢
[programming questions] [scratch Level 2] March 2019 garbage classification
测试流程不完善,又遇到不积极的开发怎么办?
v-for遍历元素样式失效
Codeforces Round #804 (Div. 2)(A~D)
51 communicates with the Bluetooth module, and 51 drives the Bluetooth app to light up
从服务器到云托管,到底经历了什么?
赞!idea 如何单窗口打开多个项目?
Kubernetes Static Pod (静态Pod)
The underlying principles and templates of new and delete
深潜Kotlin协程(二十二):Flow的处理
随机推荐
爬虫实战(八):爬表情包
[Yugong series] go teaching course 006 in July 2022 - automatic derivation of types and input and output
[programming questions] [scratch Level 2] March 2019 garbage classification
[Yugong series] go teaching course 006 in July 2022 - automatic derivation of types and input and output
攻防演练中沙盘推演的4个阶段
Hotel
Vscode software
5g NR system messages
Deep dive kotlin collaboration (the end of 23): sharedflow and stateflow
Where is the big data open source project, one-stop fully automated full life cycle operation and maintenance steward Chengying (background)?
Solution to the problem of unserialize3 in the advanced web area of the attack and defense world
Experience of autumn recruitment in 22 years
[OBS] the official configuration is use_ GPU_ Priority effect is true
Cause analysis and solution of too laggy page of [test interview questions]
深潜Kotlin协程(二十三 完结篇):SharedFlow 和 StateFlow
Handwriting a simulated reentrantlock
Interface test advanced interface script use - apipost (pre / post execution script)
丸子官网小程序配置教程来了(附详细步骤)
How does the markdown editor of CSDN input mathematical formulas--- Latex syntax summary
语义分割模型库segmentation_models_pytorch的详细使用介绍