QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#120278#1. I/O Testzhicheng200 ✓233ms3512kbC++14634b2023-07-06 16:12:212023-07-06 16:12:25

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-06 16:12:25]
  • 评测
  • 测评结果:200
  • 用时:233ms
  • 内存:3512kb
  • [2023-07-06 16:12:21]
  • 提交

config.txt

10000000 10000000

input_test

#include<bits/stdc++.h>
using namespace std;
int read(){
	int x=0,w=1;
	char ch=0;
	while(ch<'0'||ch>'9'){
		if(ch=='-')w=-1;
		ch=getchar();
	}
	while(ch>='0'&&ch<='9'){
		x=x*10+(ch-'0');
		ch=getchar();
	}
	return x*w;
}
int main(){
	int n,a;
	long long sum=0;
	scanf("%d",&n);
	for(int i=1;i<=n;i++){
		a=read();
		sum+=(long long)a;
	}
	printf("%lld",sum);
}

output_test

#include<bits/stdc++.h>
using namespace std;
void write(int x){
	if(x>=10){
		write(x/10);
	}
	putchar(x%10+'0');
}
int main(){
	int n,a=1e8;
	scanf("%d",&n);
	for(int i=1;i<=n;i++){
		write(a);
		putchar(' ');
	}
}

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 195ms
memory: 3512kb

input:

10000000
363803640 119837431 692956749 763672478 127441698 103696319 502443229 369094332 691602011 455294461 124642893 513365874 870041902 660900826 967946830 912375749 419718783 501234538 454388603 691202672 907437572 744500320 321945641 209348494 859938332 990953178 237116115 889591647 128328500 2...

output:

5500823417598786

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 233ms
memory: 3404kb

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