QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#749818#8041. Life is Hard and Undecidable, but...ice_cup#WA 0ms3648kbC++14485b2024-11-15 10:31:472024-11-15 10:31:48

Judging History

This is the latest submission verdict.

  • [2024-11-15 10:31:48]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3648kb
  • [2024-11-15 10:31:47]
  • Submitted

answer

#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
using namespace std;
#define mk make_pair
#define MID int mid=(l+r)>>1;
#define ll long long
#define endl '\n'
#define siz(a) int(a.size())
int n;
void solve(){
	cin>>n;
	cout<<2*n-1<<endl;
	for(int i=1;i<2*n;i++){
		cout<<i<<' '<<(i&1)+1<<endl;
	}
}
int main(){
	// ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
	int TTT;
	// cin>>TTT;
	TTT=1;
	while(TTT--)solve();
}

详细

Test #1:

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

input:

1

output:

1
1 2

result:

ok n=1

Test #2:

score: 0
Accepted
time: 0ms
memory: 3636kb

input:

2

output:

3
1 2
2 1
3 2

result:

ok n=3

Test #3:

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

input:

3

output:

5
1 2
2 1
3 2
4 1
5 2

result:

wrong answer Alive at generation 3