通过打表发现答案为:
#include <bits/stdc++.h> using namespace std ; int a ; int main() { cin >> a ; cout << (a == 1 ? 1 : 2 * (a - 1)) ; return 0 ; }
暂无评论