在线编程输入输出
天才小熊猫啊
路漫漫其修远兮,吾将上下而求索!!!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
关于Scanner 中的hasNext()、next()、hasNextLine()、nextLine()
hasNext()、next()配对使用hasNextLine()、nextLine()配对使用不然会出错哦!eg:hasNextLine()、nextLine()import java.util.*;public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(sc.hasNextLine()){ .原创 2021-08-02 21:14:28 · 704 阅读 · 0 评论 -
在线输入输出2.0(输入是“数组”怎么办?)
import java.util.Arrays;import java.util.Scanner;/** * 输入:[1,2,3,4,5,6]格式像数组(其实不能直接拿来用),要求将两边的括号去掉,按逗号分割,存到一个数组中 * 输出:[1, 2, 3, 4, 5, 6] * */public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in).原创 2021-08-01 21:52:43 · 157 阅读 · 0 评论 -
OJ在线编程常见输入输出练习场题解汇总
题源链接:https://ac.nowcoder.com/acm/contest/5647?from=hr_test#question 目录1 A+B(1)2 A+B(2)3 A+B(3)4 A+B(4)5 A+B(5)6 A+B(6)7 A+B(7)8 字符串排序(1)9 字符串排序(2)10 字符串排序(3)1 A+B(1)import java.util.Scanner; public class Main...原创 2021-04-09 19:49:44 · 582 阅读 · 0 评论
分享