-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfastio.cpp
41 lines (37 loc) · 813 Bytes
/
fastio.cpp
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
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
inline char gc() {
static char buffer[1 << 16];
static size_t ptr, sz;
if(ptr >= sz) {
ptr = 0;
sz = fread(buffer, 1, sizeof buffer, stdin);
}
return buffer[ptr++];
}
int readInt() {
int a, c;
while((a = gc()) < 40);
if(a == '-') return -readInt();
while((c = gc()) >= 48) a = (a - 48) * 10 + c;
return a - 48;
}
ll readLL() {
ll a, c;
while((a = gc()) < 40);
if(a == '-') return -readLL();
while((c = gc()) >= 48) a = (a - 48) * 10 + c;
return a - 48;
}
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
int n = readInt();
for(int i = 1; i <= n; i++) {
ll num = readLL();
cout << num << '\n';
}
}