QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#601820#9381. 502 Bad GatewayZpair#WA 128ms3880kbC++20240b2024-09-30 14:04:222024-09-30 14:04:23

Judging History

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

  • [2024-09-30 14:04:23]
  • 评测
  • 测评结果:WA
  • 用时:128ms
  • 内存:3880kb
  • [2024-09-30 14:04:22]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
void solve(){
	int T;
	scanf("%d",&T);
	if((T+1)&1)printf("%d %d\n",T+1,2);
	else printf("%d %d\n",(T+1)/2,1);
}
int main(){
	int T;cin>>T;
	while(T--)solve();
}

詳細信息

Test #1:

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

input:

3
1
2
3

output:

1 1
3 2
2 1

result:

ok 3 lines

Test #2:

score: -100
Wrong Answer
time: 128ms
memory: 3880kb

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'