mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 03:31:59 +00:00
P2. 输入测试
https://hydro.ac/d/system_test/record/61581aad97ec9cde15d81a1c
This commit is contained in:
parent
463d3ce984
commit
d3ee47a37e
28
Hydro/d/system_test/2/2.cpp
Normal file
28
Hydro/d/system_test/2/2.cpp
Normal file
@ -0,0 +1,28 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int n, x;
|
||||
|
||||
inline int read() {
|
||||
int x = 0, w = 1;
|
||||
char c;
|
||||
while (!isdigit(c)) {
|
||||
if (c == '-') w = -1;
|
||||
c = getchar();
|
||||
}
|
||||
while (isdigit(c)) {
|
||||
x = x * 10 + (c - '0');
|
||||
c = getchar();
|
||||
}
|
||||
return x * w;
|
||||
}
|
||||
|
||||
int main() {
|
||||
n = read();
|
||||
for (int i = 0; i <= n; i++) {
|
||||
x = read();
|
||||
}
|
||||
printf("%d\n", x);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user