QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#509089#8041. Life is Hard and Undecidable, but...333zhanWA 0ms3800kbC++20663b2024-08-08 09:55:452024-08-08 09:55:46

Judging History

This is the latest submission verdict.

  • [2024-08-08 09:55:46]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3800kb
  • [2024-08-08 09:55:45]
  • Submitted

answer

#include <bits/stdc++.h>
#define int long long

using namespace std;

inline int read () {
    int w = 1, s = 0; char ch = getchar ();
    for (; ! isdigit (ch); ch = getchar ()) if (ch == '-') w = -1;
    for (; isdigit (ch); ch = getchar ()) s = (s << 1) + (s << 3) + (ch ^ 48);
    return s * w;
}

void solve () {
	int n = read ();

    printf ("%lld\n", 2 * n - 1);
    for (int i = 1; i <= 2 * n - 1; i ++) {
        printf ("1 %lld\n", i);
    }
} 

signed main () {
	// ios::sync_with_stdio (false);
    // cin.tie (nullptr);
    
	int T = 1; 
	// cin >> T;
	// T = read ();

	while (T --) {
		solve ();
	}
	
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3800kb

input:

1

output:

1
1 1

result:

ok n=1

Test #2:

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

input:

2

output:

3
1 1
1 2
1 3

result:

wrong answer Alive at generation 2