Submission #19715220


Source Code Expand

Copy
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define mod 1000000007
#define loop(x,a,n) for(ll x = a; x < n; ++x)
#define In(a,n) for(ll x = 0; x < n; ++x){cin >> a[x];}
#define TT long long int t;cin >> t; while(t--)
#define NN long long int n;cin >> n;
#define NM long long int n,m;cin >> n >> m;
#define VI(a,n) vector<ll> a(n);
#define MAX 1000000007
#define MIN -1000000007
void dv(vector<ll> g1) { for (auto i = g1.begin(); i != g1.end(); ++i) { cout << *i << " "; } }
int invert(int a) {if (a == 0) {return 1;}else if(a==1){return 0;} else{return -1;}}
ll fact(ll n) { ll res = 1;for (ll i = 2; i <= n; i++) res = res * i%MAX;return res;} 
ll nCr(ll n, ll r){return (fact(n) / (fact(r) * fact(n - r)))%MAX;} 
ll nCr1(ll a,ll b){if(b > a){return 0;}else{ll ans=1;loop(i,b+1,a+1){ans=ans*i%MAX;} return ans;}}

ll func(ll a){if(a%2 == 0){return -1;}else{return 1;}}

int main()
{
#ifndef ONLINE_JUDGE
	freopen("input.txt","r",stdin);
	freopen("output.txt","w",stdout);
#endif
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
////////////////////////////////////////////
	ll n,n1;
	cin >> n;
	n1=n;
	while(n1--){
		loop(i,1,n+1){
			cout << (2*i)%n << ' ' << (2*i + 1)%n <<endl;
		}
	}



}
	

Submission Info

Submission Time
Task A - AtCoder Jumper
User a12d
Language C++ (GCC 9.2.1)
Score 0
Code Size 1291 Byte
Status WA
Exec Time 1367 ms
Memory 8188 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 500
Status
WA × 2
WA × 12
Set Name Test Cases
Sample example0.txt, example1.txt
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, example0.txt, example1.txt
Case Name Status Exec Time Memory
000.txt WA 8 ms 3548 KB
001.txt WA 1356 ms 8180 KB
002.txt WA 1367 ms 8188 KB
003.txt WA 1328 ms 7952 KB
004.txt WA 403 ms 3548 KB
005.txt WA 699 ms 4260 KB
006.txt WA 43 ms 3624 KB
007.txt WA 4 ms 3548 KB
008.txt WA 22 ms 3520 KB
009.txt WA 1271 ms 7608 KB
example0.txt WA 9 ms 3620 KB
example1.txt WA 2 ms 3540 KB