QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#81913#1. I/O Testq0 2ms3412kbC++23975b2023-02-26 18:11:412023-02-26 18:11:43

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-02-26 18:11:43]
  • 评测
  • 测评结果:0
  • 用时:2ms
  • 内存:3412kb
  • [2023-02-26 18:11:41]
  • 提交

config.txt

10 10

input_test

#include<bits/stdc++.h>
using namespace std;
int read(){
	int x=0,f=1;
	char ch=getchar();
	for(;ch<'0'||ch>'9';){
		if(ch=='-'){
			f=-1;
		}
		ch=getchar();
	}
	for(;ch>='0'&&ch<='9';){
		x=(x<<1)+(x<<3)+(ch^48);
		ch=getchar();
	}
	return x*f;
}
void write(int x){
	if(x<0){
		putchar('-'),x=-x;
	}
	if(x>9){
		write(x/10);
	}
	putchar(x%10+'0');
}
int n,ans;
int main(){
	n=read();
	for(int i=1;i<=n;i++){
		ans+=read();
	}
	write(ans);
	return 0;
}

output_test

#include<bits/stdc++.h>
using namespace std;
int read(){
	int x=0,f=1;
	char ch=getchar();
	for(;ch<'0'||ch>'9';){
		if(ch=='-'){
			f=-1;
		}
		ch=getchar();
	}
	for(;ch>='0'&&ch<='9';){
		x=(x<<1)+(x<<3)+(ch^48);
		ch=getchar();
	}
	return x*f;
}
void write(int x){
	if(x<0){
		putchar('-'),x=-x;
	}
	if(x>9){
		write(x/10);
	}
	putchar(x%10+'0');
}
int n,ans;
int main(){
	n=read();
	for(int i=1;i<=n;i++){
		write(i),putchar(' ');
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 2ms
memory: 3412kb

input:

10
923840235 547362689 509016102 940780372 642078056 625720564 273554914 436193593 633650584 641281872 

output:

1878511685

result:

wrong answer expected 6173478981, found 1878511685

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 2ms
memory: 3176kb

input:

10

output:

1 2 3 4 5 6 7 8 9 10 

result:

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