直接打表就行。
#include <bits/stdc++.h> using namespace std ; int x ; int main() { cin >> x ; x ++ ; if(x > 3) { x = 1 ; } cout << x ; return 0 ; }
暂无评论