QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#611375#8041. Life is Hard and Undecidable, but...Sound_MediumWA 0ms3692kbC++23441b2024-10-04 20:44:452024-10-04 20:44:46

Judging History

This is the latest submission verdict.

  • [2024-10-04 20:44:46]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3692kb
  • [2024-10-04 20:44:45]
  • 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<=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;
}

Details

Tip: Click on the bar to expand more detailed information

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