5 条题解
-
1
#include<bits/stdc++.h> using namespace std; #define LL long long const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; long long ans,n; int main() { cin >> n; ans = n % 4; if ( ans == 1 ) cout << 1; else if ( ans == 2 ) cout << n+1; else if ( ans == 3 ) cout << 0; else cout << n; return 0; }
信息
- ID
- 2555
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 8
- 标签
- 递交数
- 617
- 已通过
- 116
- 上传者