Contest Duration: - (local time) (210 minutes) Back to Home

Submission #19716029

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;

loop(i,1,n+1){
cout << (2*i)%n << ' ' << (2*i + 1)%n <<endl;
}

}
```

#### Submission Info

Submission Time 2021-01-27 11:43:20+0900 A - AtCoder Jumper a12d C++ (GCC 9.2.1) 0 1275 Byte WA 10 ms 3644 KB

#### Compile Error

```./Main.cpp: In function ‘int main()’:
./Main.cpp:31:7: warning: variable ‘n1’ set but not used [-Wunused-but-set-variable]
31 |  ll n,n1;
|       ^~
```

#### 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 9 ms 3548 KB
001.txt WA 10 ms 3496 KB
002.txt WA 8 ms 3644 KB
003.txt WA 6 ms 3532 KB
004.txt WA 3 ms 3524 KB
005.txt WA 5 ms 3588 KB
006.txt WA 3 ms 3616 KB
007.txt WA 2 ms 3640 KB
008.txt WA 2 ms 3492 KB
009.txt WA 6 ms 3572 KB
example0.txt WA 3 ms 3616 KB
example1.txt WA 3 ms 3476 KB