結果

問題 No.1462 最弱WEAKER
ユーザー ygd.ygd.
提出日時 2021-04-02 21:24:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 87,320 KB
実行使用メモリ 71,692 KB
最終ジャッジ日時 2023-08-25 11:22:44
合計ジャッジ時間 2,890 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,620 KB
testcase_01 AC 66 ms
71,364 KB
testcase_02 AC 67 ms
71,464 KB
testcase_03 AC 72 ms
71,428 KB
testcase_04 AC 69 ms
71,156 KB
testcase_05 AC 68 ms
71,160 KB
testcase_06 AC 69 ms
71,400 KB
testcase_07 AC 67 ms
71,492 KB
testcase_08 AC 67 ms
71,184 KB
testcase_09 AC 71 ms
71,368 KB
testcase_10 AC 67 ms
71,692 KB
testcase_11 AC 68 ms
71,320 KB
testcase_12 AC 69 ms
71,664 KB
testcase_13 AC 68 ms
71,472 KB
testcase_14 AC 70 ms
71,176 KB
testcase_15 AC 68 ms
71,496 KB
testcase_16 AC 68 ms
71,476 KB
testcase_17 AC 70 ms
71,424 KB
testcase_18 AC 70 ms
71,300 KB
testcase_19 AC 70 ms
71,364 KB
testcase_20 AC 69 ms
71,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = []
while N > 0:
    temp = N%3
    S.append(temp)
    N //= 3
#print(S)
Total = sum(S)
#print(Total)
if Total%2 == 0:
    print("YES")
else:
    print("NO")
0