QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#81919#1. I/O Testq0.0001 2ms3232kbC++231.0kb2023-02-26 18:15:302023-02-26 18:15:31

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:15:31]
  • 评测
  • 测评结果:0.0001
  • 用时:2ms
  • 内存:3232kb
  • [2023-02-26 18:15:30]
  • 提交

config.txt

10 10

input_test

#include<bits/stdc++.h>
using namespace std;
#define int long long
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;
signed 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;
#define int long long
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;
signed main(){
	n=read();
	for(int i=1;i<=n;i++){
		write(i),putchar(' ');
	}
	return 0;
}

详细

Subtask #1:

score: 0.0001
Acceptable Answer

Test #1:

score: 0.0001
Acceptable Answer
time: 2ms
memory: 3232kb

input:

10
974524241 785052362 323472003 380835620 792641721 259199766 378179651 212433766 529139547 518882778 

output:

5154361455

result:

points 0.0000010 input test passed

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 1ms
memory: 3220kb

input:

10

output:

1 2 3 4 5 6 7 8 9 10 

result:

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