QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#53882 | #1. I/O Test | james1BadCreeper | 200 ✓ | 380ms | 1764kb | C11 | 750b | 2022-10-06 10:03:07 | 2022-10-06 10:03:09 |
Judging History
config.txt
10000000 10000000
input_test
#include <stdio.h>
#include <ctype.h>
int main(void)
{
int n, c, x;
long long ans = 0;
scanf("%d", &n);
while (n--)
{
c = getchar(); x = 0;
while (!isdigit(c)) c = getchar_unlocked();
while (isdigit(c)) x = (x << 3) + (x << 1) + (c ^ 48), c = getchar_unlocked();
ans += x;
}
printf("%lld\n", ans);
return 0;
}
output_test
#include <stdio.h>
int main(void)
{
int n;
scanf("%d", &n);
while (n--)
{
putchar_unlocked('1');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked('0');
putchar_unlocked(' ');
}
putchar_unlocked('\n');
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 375ms
memory: 1764kb
input:
10000000 845864219 480740986 410571067 781114525 305445428 889148477 554867903 814332991 711659067 675806188 455959089 395269229 293266630 463616720 200001328 232507793 161332564 806244948 366723067 843625334 708902033 807597225 280913503 467429472 212018765 201677634 558603620 209920090 724868637 2...
output:
5499373705774810
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 380ms
memory: 1720kb
input:
10000000
output:
100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 ...
result:
points 1.0 output test passed