| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1356669 | yyc000123 | Make them Meet (EGOI24_makethemmeet) | C++20 | 1 ms | 344 KiB |
#include<bits/stdc++.h>
using namespace std ;
const int N = 105 ;
int n , m ;
int main(){
ios::sync_with_stdio(0),cin.tie(0),cout.tie(0) ;
cin >> n >> m ;
cout << 2*n << '\n' ;
for(int i=0 ; i<2*n ; i++){
if(i%2==0){
int cnt = 0 ;
for(int j=1 ; j<n ; j+=2) cout << cnt << ' ' << cnt << ' ' , cnt++ ;
if(n&1) cout << cnt << '\n' ;
else cout << '\n' ;
}
else{
int cnt = 1 ;
cout << "0 " ;
for(int j=2 ; j<n ; j+=2) cout << cnt << ' ' << cnt << ' ' , cnt++ ;
if(n%2==0) cout << cnt << '\n' ;
else cout << '\n' ;
}
}
return 0 ;
}| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
