Submission #1234147

#TimeUsernameProblemLanguageResultExecution timeMemory
1234147toast12Make them Meet (EGOI24_makethemmeet)C++20
24 / 100
2 ms328 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; for (int i = 0; i < m; i++) { int u, v; cin >> u >> v; } cout << n << '\n'; for (int i = 0; i < n; i++) { if (i % 2 == 0) { for (int j = 0; j < n; j += 2) { cout << j/2 << ' '; if (j+1 < n) cout << j/2 << ' '; } cout << '\n'; } else { cout << 0 << ' '; int cur = 1; for (int j = 1; j < n; j += 2) { cout << cur << ' '; if (j+1 < n) cout << cur << ' '; cur++; } cout << '\n'; } } return 0; }
#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...