結果
問題 |
No.524 コインゲーム
|
ユーザー |
![]() |
提出日時 | 2024-09-30 02:00:19 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 409 bytes |
コンパイル時間 | 1,101 ms |
コンパイル使用メモリ | 90,848 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-09-30 02:00:22 |
合計ジャッジ時間 | 2,479 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> using namespace std; using ll = long long; // ll calc(ll n){ // ll ans = 0; // for(int i = 1;i<=n;i++) ans ^= i; // return ans; // } int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); // for(int i = 1;i<=10;i++) cout<<i<<" "<<calc(i)<<endl; ll n; cin>>n; if(n%4==3) cout<<"X\n"; else cout<<"O\n"; }