当前位置:网站首页>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]);
}
}
边栏推荐
- Smart regulation enters the market, where will meituan and other Internet service platforms go
- 【obs】官方是配置USE_GPU_PRIORITY 效果为TRUE的
- Kubernetes Static Pod (静态Pod)
- 腾讯安全发布《BOT管理白皮书》|解读BOT攻击,探索防护之道
- 《因果性Causality》教程,哥本哈根大学Jonas Peters讲授
- 备库一直有延迟,查看mrp为wait_for_log,重启mrp后为apply_log但过一会又wait_for_log
- Hotel
- Lecture 1: the entry node of the link in the linked list
- How does the markdown editor of CSDN input mathematical formulas--- Latex syntax summary
- 51 communicates with the Bluetooth module, and 51 drives the Bluetooth app to light up
猜你喜欢
华为交换机S5735S-L24T4S-QA2无法telnet远程访问
Coindesk comments on the decentralization process of the wave field: let people see the future of the Internet
Installation and configuration of sublime Text3
51与蓝牙模块通讯,51驱动蓝牙APP点灯
【笔记】常见组合滤波电路
RPA云电脑,让RPA开箱即用算力无限?
3年经验,面试测试岗20K都拿不到了吗?这么坑?
Cause analysis and solution of too laggy page of [test interview questions]
【愚公系列】2022年7月 Go教学课程 006-自动推导类型和输入输出
Service Mesh介绍,Istio概述
随机推荐
某马旅游网站开发(对servlet的优化)
Deep dive kotlin synergy (XXII): flow treatment
从服务器到云托管,到底经历了什么?
Experience of autumn recruitment in 22 years
丸子官网小程序配置教程来了(附详细步骤)
Introduction to paddle - using lenet to realize image classification method I in MNIST
深潜Kotlin协程(二十二):Flow的处理
玩轉Sonar
C language 001: download, install, create the first C project and execute the first C language program of CodeBlocks
new和delete的底层原理以及模板
Stm32f1 and stm32cubeide programming example - rotary encoder drive
去了字节跳动,才知道年薪 40w 的测试工程师有这么多?
[C language] objective questions - knowledge points
NVIDIA Jetson测试安装yolox过程记录
How to add automatic sorting titles in typora software?
How can CSDN indent the first line of a paragraph by 2 characters?
动态库基本原理和使用方法,-fPIC 选项的来龙去脉
韦东山第三期课程内容概要
哪个券商公司开户佣金低又安全,又靠谱
Su embedded training - day4