QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#611375 | #8041. Life is Hard and Undecidable, but... | Sound_Medium | WA | 0ms | 3692kb | C++23 | 441b | 2024-10-04 20:44:45 | 2024-10-04 20:44:46 |
Judging History
answer
#include <bits/stdc++.h>
#define int long long
using namespace std;
int n, m;
void solve () {
cin>>n;
cout<<2*n-1<<endl;
for(int i=1;i<=n;i++){
cout<<1<<" "<<i*2-1<<endl;
}
for(int i=1;i<=n-1;i++){
cout<<2<<" "<<2*i<<endl;
}
}
signed main () {
int T = 1;
std::ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
//cin>>T;
while (T --) solve ();
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3616kb
input:
1
output:
1 1 1
result:
ok n=1
Test #2:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
2
output:
3 1 1 1 3 2 2
result:
ok n=3
Test #3:
score: -100
Wrong Answer
time: 0ms
memory: 3692kb
input:
3
output:
5 1 1 1 3 1 5 2 2 2 4
result:
wrong answer Alive at generation 3