QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#609982#8041. Life is Hard and Undecidable, but...yldWA 0ms3680kbC++20363b2024-10-04 14:38:352024-10-04 14:38:37

Judging History

This is the latest submission verdict.

  • [2024-10-04 14:38:37]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3680kb
  • [2024-10-04 14:38:35]
  • Submitted

answer

#include<bits/stdc++.h>
#define int long long
#define endl '\n'
using namespace std;
void solve()
{
    int n,num=0;
    cin>>n;
    cout<<2*n<<endl;
    for(int i=1;i<=2*n;i++)
    {
        cout<<i<<' '<<1<<endl;
    }
}
signed main()
{
    cin.tie(0)->sync_with_stdio(0);
    int t=1;
    // 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: 3680kb

input:

1

output:

2
1 1
2 1

result:

ok n=2

Test #2:

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

input:

2

output:

4
1 1
2 1
3 1
4 1

result:

wrong answer Alive at generation 2