Submission #644929

# Submission time Handle Problem Language Result Execution time Memory
644929 2022-09-25T14:42:21 Z andrei_boaca Newspapers (CEOI21_newspapers) C++14
0 / 100
1 ms 336 KB
#include <bits/stdc++.h>

using namespace std;
int n,m;
vector<int> muchii[1005];
bool adj[1005][1005];
int main()
{
    cin>>n>>m;
    for(int i=1;i<=m;i++)
    {
        int a,b;
        cin>>a>>b;
        muchii[a].push_back(b);
        muchii[b].push_back(a);
    }
    if(m==n-1)
        cout<<"YES\n";
    else
        cout<<"NO\n";
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -