# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1185232 | cpdreamer | Newspapers (CEOI21_newspapers) | C++20 | 0 ms | 332 KiB |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define P pair
#define F first
#define all(v) v.begin(),v.end()
#define V vector
#define pb push_back
#define S second
void file() {
freopen("input.txt.txt", "r", stdin);
freopen("output.txt.txt", "w", stdout);
}
V<int>binary_rep(int n){
V<int>vp;
for(int i=0;i<30;i++){
if(((1<<i)&n)!=0)
vp.pb(1);
else
vp.pb(0);
}
return vp;
}
void solve() {
int n;
cin>>n;
int m;
cin>>m;
for(int i=0;i<m;i++){
int a,b;
cin>>a>>b;
}
cout<<"YES"<<endl;
cout<<1<<endl;
cout<<1<<endl;
}
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
//file();
solve();
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |