QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#878169#1. I/O Testsc17100 155ms3584kbC++14570b2025-02-01 13:51:052025-02-01 13:51:10

Judging History

This is the latest submission verdict.

  • [2025-02-01 13:51:10]
  • Judged
  • Verdict: 100
  • Time: 155ms
  • Memory: 3584kb
  • [2025-02-01 13:51:05]
  • Submitted

config.txt

10000000 0

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 << 3) + (a << 1) + (c & 15), 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 | 48; 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


详细

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 155ms
memory: 3584kb

input:

10000000
840582664 414629497 938633859 481974683 654148601 243576380 887019261 629598282 374420403 976693803 427683485 334821529 926359806 771469988 593588007 312706183 961739500 414915637 697634033 199647711 541719860 235336031 627586390 254020116 552640816 314415435 629284658 133649608 129754446 8...

output:

5500668268782923

result:

points 1.0 input test passed

Subtask #2:

score: 0
Skipped