QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#754208#9381. 502 Bad Gatewaymoanhehe666233#WA 0ms1648kbC++23259b2024-11-16 14:30:102024-11-16 14:30:12

Judging History

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

  • [2024-11-16 14:30:12]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:1648kb
  • [2024-11-16 14:30:10]
  • 提交

answer

#include<stdio.h>
#include<algorithm>
using namespace std;
int main(){
	int n;
	scanf("%d",&n);
	int a;
	for(int i = 1; i <= n; ++ i){
		scanf("%d",&a);
		if((a+1)%2){
			printf("%d %d",a+1,2);
		}
		else{
			printf("%d 1",(a+1)/2,1);
		}
	}
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 1648kb

input:

3
1
2
3

output:

1 13 22 1

result:

wrong answer 1st lines differ - expected: '1 1', found: '1 13 22 1'