QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#878145 | #1. I/O Test | sc17 | 100 | 218ms | 3584kb | C++14 | 1.1kb | 2025-02-01 13:44:03 | 2025-02-01 13:44:09 |
Judging History
config.txt
10000000 10000000
input_test
#include <bits/stdc++.h>
using namespace std;
#define gc getchar_unlocked
#define pc putchar_unlocked
int read() {
int a = 0; char c;
for (c = gc(); !isdigit(c); c = gc());
while (isdigit(c)) a = a * 10 + c - '0', c = gc();
return a;
}
void read(int & a) {
a = read();
}
void put(long long x) {
static char b[39];
int i = 0; do b[i++] = x % 10 + '0'; while (x /= 10);
do pc(b[--i]); while (i);
}
int n;
int main() {
ios::sync_with_stdio(false);
long long x = 0; read(n); while (n--) x += read();
put(x);
}
output_test
#include <bits/stdc++.h>
using namespace std;
#define L(i, j, k) for(int i = (j), _e = (k); i <= _e; ++i)
#define gc getchar_unlocked
#define pc putchar_unlocked
int read() {
int a = 0; char c;
for (c = gc(); !isdigit(c); c = gc());
while (isdigit(c)) a = a * 10 + c - '0', c = gc();
return a;
}
void read(int & a) {
a = read();
}
void put(long long x) {
static char b[39];
int i = 0; do b[i++] = x % 10 + '0'; while (x /= 10);
do pc(b[--i]); while (i);
}
int n;
int main() {
ios::sync_with_stdio(false);
read(n); L(i, 1e8, 1e8 + n) put(i), pc(' ');
pc('\n');
}
詳細信息
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 170ms
memory: 3456kb
input:
10000000 199645138 855661009 599150031 971509159 530059978 344620718 139392683 668404887 708829168 866109883 846214101 531375006 746913695 447378002 561194580 291012541 909475064 639131677 713015469 967578304 754568366 438069294 278126223 346952090 554519314 481443003 107885824 661721372 265839087 6...
output:
5500473170663957
result:
points 1.0 input test passed
Subtask #2:
score: 0
Wrong Answer
Test #2:
score: 0
Wrong Answer
time: 218ms
memory: 3584kb
input:
10000000
output:
100000000 100000001 100000002 100000003 100000004 100000005 100000006 100000007 100000008 100000009 100000010 100000011 100000012 100000013 100000014 100000015 100000016 100000017 100000018 100000019 100000020 100000021 100000022 100000023 100000024 100000025 100000026 100000027 100000028 100000029 ...
result:
wrong output format Extra information in the output file