QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#754208 | #9381. 502 Bad Gateway | moanhehe666233# | WA | 0ms | 1648kb | C++23 | 259b | 2024-11-16 14:30:10 | 2024-11-16 14:30:12 |
Judging History
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'