QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#611407#8041. Life is Hard and Undecidable, but...Sound_MediumWA 0ms3648kbC++23372b2024-10-04 20:54:392024-10-04 20:54:42

Judging History

This is the latest submission verdict.

  • [2024-10-04 20:54:42]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3648kb
  • [2024-10-04 20:54:39]
  • Submitted

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<=2*n-1;i++){
        cout<<1<<" "<<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: 3560kb

input:

1

output:

1
1 1

result:

ok n=1

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3648kb

input:

2

output:

3
1 1
1 2
1 3

result:

wrong answer Alive at generation 2