Submission #1064707

#TimeUsernameProblemLanguageResultExecution timeMemory
1064707sunboiMake them Meet (EGOI24_makethemmeet)C++14
24 / 100
3 ms600 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 << 3 * n << endl; for (int i = 0; i < 3 * 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...