fast_read

Nannan Lv5

fast_read

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.StringTokenizer;



public class Main {
static InputReader cin = new InputReader();
static PrintWriter cout = new PrintWriter(new OutputStreamWriter(System.out));
public static void main(String[] args) throws Exception {
/*
你的代码写在这里
(输入实例: int a = cin.nextInt();)
*/
int a = cin.nextInt();
cout.println(a);
cout.close(); //不关闭输出流的话,控制台会没有输出,所以一定要关,in最好也关,不过实测没有因为不关in出过问题
}

static class InputReader{
private StringTokenizer st;
private BufferedReader bf;

public InputReader() {
bf = new BufferedReader(new InputStreamReader(System.in));
st = null;
}

public String next() throws IOException{
while(st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(bf.readLine());
}
return st.nextToken();
}

public String nextLine() throws IOException{
return bf.readLine();
}

public int nextInt() throws IOException{
return Integer.parseInt(next());
}

public long nextLong() throws IOException{
return Long.parseLong(next());
}

public double nextDouble() throws IOException{
return Double.parseDouble(next());
}

public BigInteger nextBigInteger() throws IOException{
return new BigInteger(next());
}

public BigDecimal nextBigDecimal() throws IOException{
return new BigDecimal(next());
}
}
}

  • Title: fast_read
  • Author: Nannan
  • Created at : 2024-03-10 22:22:00
  • Updated at : 2024-09-30 20:58:20
  • Link: https://redefine.ohevan.com/2024/03/10/三、fast_read/
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments
On this page
fast_read