QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#81922#1. I/O Testq10 75ms3264kbC++231.0kb2023-02-26 18:16:292023-02-26 18:16:32

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:16:32]
  • 评测
  • 测评结果:10
  • 用时:75ms
  • 内存:3264kb
  • [2023-02-26 18:16:29]
  • 提交

config.txt

1000000 1000000

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: 10
Acceptable Answer

Test #1:

score: 10
Acceptable Answer
time: 38ms
memory: 3240kb

input:

1000000
729015335 933794414 332581309 388100616 847481583 457582398 119911496 930263293 567677131 299836297 211416814 283888804 198112183 351342349 350956004 703800503 805874642 229120906 118883423 980475876 940213569 284314232 832384576 723353049 679827239 596633129 651220118 656594846 945496643 84...

output:

549963786123049

result:

points 0.10 input test passed

Subtask #2:

score: 0
Wrong Answer

Test #2:

score: 0
Wrong Answer
time: 75ms
memory: 3264kb

input:

1000000

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 ...

result:

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