G - Следующее четное

Anonymous
c_cpp
09/25/2023 12:45 PM
176 B
18
Indexable
#include <iostream>

using namespace std;

int main() {
    int n;
    cin >> n;
    cout << n + 2 - n % 2;
    return 0;
}
Editor is loading...