QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#120276#1. I/O Testzhicheng100 206ms3636kbC++14634b2023-07-06 16:11:402023-07-06 16:11:42

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:11:42]
  • 评测
  • 测评结果:100
  • 用时:206ms
  • 内存:3636kb
  • [2023-07-06 16:11:40]
  • 提交

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=1e7;
	scanf("%d",&n);
	for(int i=1;i<=n;i++){
		write(a);
		putchar(' ');
	}
}

詳細信息

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 206ms
memory: 3508kb

input:

10000000
932131082 985259938 389021283 284925214 224304957 392093125 139389410 230212293 529670058 496146136 686713810 357052418 235863465 898438303 359996368 920580530 132798800 688295208 472748903 891120129 105665355 897006253 980868274 362424730 520563980 640050106 452038776 379639380 622697944 3...

output:

5499060101099757

result:

points 1.0 input test passed

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 178ms
memory: 3636kb

input:

10000000

output:

10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 10000000 100...

result:

wrong answer Integer 10000000 violates the range [10^8, 999999999]