Submission #1064717

#TimeUsernameProblemLanguageResultExecution timeMemory
1064717sunboiMake them Meet (EGOI24_makethemmeet)C++17
0 / 100
1 ms348 KiB
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ int n, m; cin >> n >> m; for (int i = 0; i < m; i++){ int a, b; cin >> a >> b; } cout << n - 1 << endl; for (int i = 0; i < n - 1; i++){ if (i % 2){ for (int j = 1; j <= n; j++){ cout << j / 2 << ' '; } }else{ for (int j = 0; j < n; j++){ cout << j / 2 << ' '; } } cout << endl; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...