QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#772635#1. I/O Testliuzhenhao09100 103ms4864kbC++14600b2024-11-22 20:56:262024-11-22 20:56:27

Judging History

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

  • [2024-11-22 20:56:27]
  • 评测
  • 测评结果:100
  • 用时:103ms
  • 内存:4864kb
  • [2024-11-22 20:56:26]
  • 提交

config.txt

10000000 0

input_test

#include<bits/stdc++.h>
#define int long long
using namespace std; 
const int INF = 1e16 + 7;
char buf[1<<21],*p1,*p2;
#define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf,1,1<<20,stdin),p1 == p2) ? 0 : *p1++)
template <typename T>
inline void read(T& x){
	x = 0;
	int f = 1;
	char ch = gc();
	while(!isdigit(ch)){
		if(ch == '-') f = -1;
		ch = gc();
	}
	while(isdigit(ch)){
		x = (x << 1) + (x << 3) + (ch ^ 48);
		ch = gc();
	}
	x *= f;
}
int n,x,s = 0;
signed main(){
	read(n);
	for(int i = 1; i <= n; i++) read(x),s += x;
	printf("%lld",s);
    return 0;
}

output_test


詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 103ms
memory: 4864kb

input:

10000000
372568920 989201618 530209147 506801797 773493379 557000866 825909231 246533215 954163915 793890792 878254430 101584240 452917834 346669193 995557242 433916941 747580555 338025953 405692578 687881594 911218808 734286754 172070189 721936903 288627545 888563934 824531541 831642951 243494185 6...

output:

5501525867846507

result:

points 1.0 input test passed

Subtask #2:

score: 0
Skipped