#include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x; if (x > 0) y = x + 1; else if (x == 0) y = 0; else y = x - 1; cout << y << endl; return 0; }
使用您的 蒙青创OJ 通用账户