# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1033618 | 2024-07-25T04:06:19 Z | vjudge1 | Stove (JOI18_stove) | C++14 | 0 ms | 348 KB |
#include<bits/stdc++.h> using namespace std; #define endl '\n' signed main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; int d[n+1][n+1]; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cin >> d[i][j]; } } int p; cin >> p; vector<int> ans; for(int i=1;i<=n;i++){ if(d[i][1]==i){ ans.push_back(i); } } cout << ans.size() << endl; for(int i=0;i<ans.size();i++){ if(i){ cout << ' '; } cout << ans[i]; } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |