結果
| 問題 | No.1462 最弱WEAKER |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-05 18:02:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 118 bytes |
| 記録 | |
| コンパイル時間 | 273 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2026-04-05 20:11:13 |
| 合計ジャッジ時間 | 1,536 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")