結果
問題 | No.524 コインゲーム |
ユーザー |
![]() |
提出日時 | 2022-11-26 18:03:00 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 1,000 ms |
コード長 | 172 bytes |
コンパイル時間 | 364 ms |
コンパイル使用メモリ | 82,412 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-10-03 02:02:13 |
合計ジャッジ時間 | 2,866 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
N = int(input())for i in range(32):a, b = N//(1<<(i+1)), N%(1<<(i+1))num = a*(1<<i)+max(0,b-(1<<i)+1)if num&1:print('O')exit()print('X')