結果
問題 |
No.524 コインゲーム
|
ユーザー |
![]() |
提出日時 | 2019-09-01 00:21:45 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 262 bytes |
コンパイル時間 | 502 ms |
コンパイル使用メモリ | 57,816 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-26 03:03:51 |
合計ジャッジ時間 | 1,469 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> #define rep(i,n) for(int i=0;i<n;++i) #define rep1(i,n) for(int i=1;i<=n;++i) using namespace std; typedef long long ll; ll n; int main() { cin >> n; cout << ((n+1)%4?"O":"X") << "\n"; return 0; }