結果
| 問題 | No.1462 最弱WEAKER |
| コンテスト | |
| ユーザー |
nephrologist
|
| 提出日時 | 2021-04-02 21:24:16 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 26 ms / 2,000 ms |
| + 31µs | |
| コード長 | 174 bytes |
| 記録 | |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 80,640 KB |
| 実行使用メモリ | 54,528 KB |
| 最終ジャッジ日時 | 2026-10-06 16:42:29 |
| 合計ジャッジ時間 | 2,007 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
# 3進数
n = int(input())
num = n
res = []
while num:
res.append(num % 3)
num //= 3
goukei = sum(res)
if goukei % 2 == 0:
print("YES")
else:
print("NO")
nephrologist