QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#55447 | #1. I/O Test | james1BadCreeper | 100 | 418ms | 2020kb | C++20 | 578b | 2022-10-13 19:42:15 | 2022-10-13 19:42:20 |
Judging History
config.txt
10000000 10000000
input_test
#include <cstdio>
#pragma GCC optimize("Ofast")
inline void read(int &x)
{
int c = getchar(); x = 0;
while (c < '0' || c > '9') c = getchar();
while (c >= '0' && c <= '9') x = (x << 3) + (x << 1) + (c ^ 48), c = getchar();
}
int main(void)
{
int n;
read(n);
int x;
long long ans = 0;
while (n--)
{
read(x);
ans += x;
}
printf("%lld\n", ans);
return 0;
}
output_test
#include <cstdio>
#pragma GCC optimize("Ofast")
int main(void)
{
int n;
scanf("%d", &n);
while (n--)
printf("10000000 ");
putchar('\n');
return 0;
}
详细
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 418ms
memory: 2020kb
input:
10000000 859185531 219368758 951138888 978979118 271040480 504752360 804523577 766457836 165861608 876251242 331593523 942406058 523958186 531945162 582375994 524545290 266274411 957125121 352585487 754299326 622904661 357206295 806804069 322405896 580847014 261661356 302716843 563282749 472761072 4...
output:
5500032135986804
result:
points 1.0 input test passed
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 375ms
memory: 1788kb
input:
10000000
output:
10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 100...
result:
wrong answer Integer 10000000 violates the range [10^8, 999999999]