본문 바로가기

Competition/codeforces

Avito Cool Challenge 2018 A. Definite Game

A. Definite Game

https://codeforces.com/problemset/problem/1081/A


2를 제외하고, n - (n-1)이 가능하다.


1
2
3
4
5
6
7
8
9
10
11
12
#include <bits/stdc++.h>
using namespace std;
 
int n;
int main() {
    ios::sync_with_stdio(0);
    cin.tie(NULL); cout.tie(NULL);
    cin >> n;
    if (n == 2cout << 2;
    else cout << 1;
    return 0;
}
cs