제출 #1098120

#제출 시각아이디문제언어결과실행 시간메모리
1098120Trisanu_DasMake them Meet (EGOI24_makethemmeet)C++17
0 / 100
0 ms456 KiB
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0)->sync_with_stdio(0); int n, m; cin >> n >> m; vector<int> adj[n]; while(m--){ int u, v; cin >> u >> v; adj[u].push_back(v); adj[v].push_back(u); } cout << n << '\n'; for(int i = 0; i < n; i++){ for(int j = 0; j < n; j++){ if(i & 1) cout << (((j + 1) % 4) > 2) << ' '; else cout << ((j % 4) > 2) << '\n'; } cout << '\n'; } }
#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...