답안 #961079

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
961079 2024-04-11T13:31:15 Z PagodePaiva Newspapers (CEOI21_newspapers) C++17
0 / 100
0 ms 344 KB
#include<bits/stdc++.h>
#define N 1010

using namespace std;

vector <int> g[N];

int main(){
    int n, m;
    cin>>n >>m;
    for(int i = 0;i <m;i++){
        int a, b;
        cin >> a >> b;
    }
    cout << "YES\n";
    cout << n << endl;
    cout << n-1 << ' ';
    for(int i = n-1;i > 0;i--) cout << i << ' ';
        cout << endl;

    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB Integer 0 violates the range [1, 1]
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB Integer 0 violates the range [1, 1]
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB Integer 0 violates the range [1, 1]
2 Halted 0 ms 0 KB -