結果
問題 |
No.1462 最弱WEAKER
|
ユーザー |
👑 |
提出日時 | 2021-08-05 18:02:47 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 118 bytes |
コンパイル時間 | 322 ms |
コンパイル使用メモリ | 82,832 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-09-16 15:21:56 |
合計ジャッジ時間 | 1,912 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
n = int(input()) cnt = 0 while n: cnt += n % 3 n //= 3 if cnt % 2 == 0: print("YES") else: print("NO")