Submission #1064715

#TimeUsernameProblemLanguageResultExecution timeMemory
1064715sunboiMake them Meet (EGOI24_makethemmeet)C++17
24 / 100
2 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 << endl; for (int i = 0; i < n; 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...