QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#754565#1. I/O Testheavenaef200 ✓231ms3648kbC++14945b2024-11-16 15:19:342024-11-16 15:19:34

Judging History

你现在查看的是最新测评结果

  • [2024-11-16 15:19:34]
  • 评测
  • 测评结果:200
  • 用时:231ms
  • 内存:3648kb
  • [2024-11-16 15:19:34]
  • 提交

config.txt

10000000 10000000

input_test

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int ch;
inline void read(ll &x) {
	x = 0; do ch = getchar() ^ 0b110000; while(0 > ch || ch > 0b1001);
	do x = (x << 0b11) + (x << 0b1) + ch, ch = getchar() ^ 0b110000; while(0 <= ch && ch <= 0b1001);
}
void write(ll x) {
	char chs[0b100000]; ch = 0;
	do chs[++ch] = x - x / 0b1010 * 0b1010, x /= 0b1010; while(x);
	do putchar(*(chs + ch) + 0b110000); while(--ch);
}
ll n, m, sum = 0;
signed main() {
	read(n);
	do read(m), sum += m; while(--n);
	write(sum);
	return 0;
}

output_test

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n = 0;
char ch;
inline void read(ll &x) {
	x = 0; do ch = getchar() ^ 0b110000; while(0 > ch || ch > 0b1001);
	do x = (x << 0b11) + (x << 0b1) + ch, ch = getchar() ^ 0b110000; while(0 <= ch && ch <= 0b1001);
}
signed main() {
	read(n);
	do puts("100000000"); while(--n);
	return 0;
}

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 231ms
memory: 3624kb

input:

10000000
431119065 593832375 558477308 639305214 847269047 996553525 791813471 558094497 914033647 674217600 495027622 215697419 956397021 472914158 491066004 587723374 557887394 135987870 119763527 243839285 142509299 449247585 765012689 408616624 859253264 138380777 137949637 126049704 173968930 8...

output:

5499646353540646

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 134ms
memory: 3648kb

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