QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#81921#1. I/O Testq0.1 3ms3264kbC++231.0kb2023-02-26 18:16:112023-02-26 18:16:14

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:14]
  • 评测
  • 测评结果:0.1
  • 用时:3ms
  • 内存:3264kb
  • [2023-02-26 18:16:11]
  • 提交

config.txt

10000 10000

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.1
Acceptable Answer

Test #1:

score: 0.1
Acceptable Answer
time: 3ms
memory: 3200kb

input:

10000
111317910 440375640 903360909 373201432 946768415 691272716 723236359 191376198 661014784 531819898 241718587 921072638 626984668 319743330 393898161 753604032 244213269 395432554 568822944 730971925 361608393 488666326 549573730 687792071 313602437 790647646 349584390 722578639 852203115 2737...

output:

5497383631335

result:

points 0.0010 input test passed

Subtask #2:

score: 0
Wrong Answer

Test #2:

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

input:

10000

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]