QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#81915#1. I/O Testq1.0E-5 1ms3236kbC++23973b2023-02-26 18:12:162023-02-26 18:12:18

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:12:18]
  • 评测
  • 测评结果:1.0E-5
  • 用时:1ms
  • 内存:3236kb
  • [2023-02-26 18:12:16]
  • 提交

config.txt

1 1

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;
}

詳細信息

Subtask #1:

score: 1e-05
Acceptable Answer

Test #1:

score: 1e-05
Acceptable Answer
time: 0ms
memory: 3236kb

input:

1
191920090 

output:

191920090

result:

points 0.00000010 input test passed

Subtask #2:

score: 0
Wrong Answer

Test #2:

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

input:

1

output:

1 

result:

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