#include<iostream> using namespace std; int main(){ int k; cin >> k; cout << "100\n"; int a,b; for(int i=0;i<33;i++){ cout << i*3+2 << " " << i*3+3 << "\n"; a=-1; if(i!=32){ a=i*3+4; } b=-1; if(k%2==1){ b=100; } k=k/2; cout << a << " " << b << "\n"; cout << a << " " << -1 << "\n"; } cout << -1 << " " << -1 << "\n"; return 0; }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #include<iostream> using namespace std; int main(){ int k; cin >> k; cout << "100\n"; int a,b; for(int i=0;i<33;i++){ cout << i*3+2 << " " << i*3+3 << "\n"; a=-1; if(i!=32){ a=i*3+4; } b=-1; if(k%2==1){ b=100; } k=k/2; cout << a << " " << b << "\n"; cout << a << " " << -1 << "\n"; } cout << -1 << " " << -1 << "\n"; return 0; } |