QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#582124#9381. 502 Bad GatewaySwd146296#WA 459ms3596kbC++14198b2024-09-22 15:24:492024-09-22 15:24:49

Judging History

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

  • [2024-09-24 14:55:37]
  • hack成功,自动添加数据
  • (/hack/886)
  • [2024-09-22 15:24:49]
  • 评测
  • 测评结果:WA
  • 用时:459ms
  • 内存:3596kb
  • [2024-09-22 15:24:49]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int _;
int main(){
	cin>>_;
	while(_--){
		int n;
		cin>>n;
		int x=n+1,y=2;
		if(x%2==0){
			x/=2,y/=2;
		}
		cout<<x<<' '<<y<<endl;
	}
} 

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3536kb

input:

3
1
2
3

output:

1 1
3 2
2 1

result:

ok 3 lines

Test #2:

score: -100
Wrong Answer
time: 459ms
memory: 3596kb

input:

1000000
1
1000000000
1
1
1000000000
1
1000000000
1
1
1
1000000000
1
1
1000000000
1
1000000000
1000000000
1
1000000000
1
1
1000000000
1
1000000000
1000000000
1
1000000000
1000000000
1000000000
1000000000
1000000000
1000000000
1
1
1000000000
1
1000000000
1000000000
1000000000
1000000000
1
1
1
10000000...

output:

1 1
1000000001 2
1 1
1 1
1000000001 2
1 1
1000000001 2
1 1
1 1
1 1
1000000001 2
1 1
1 1
1000000001 2
1 1
1000000001 2
1000000001 2
1 1
1000000001 2
1 1
1 1
1000000001 2
1 1
1000000001 2
1000000001 2
1 1
1000000001 2
1000000001 2
1000000001 2
1000000001 2
1000000001 2
1000000001 2
1 1
1 1
1000000001 ...

result:

wrong answer 2nd lines differ - expected: '1999961560 44721', found: '1000000001 2'