結果

問題 No.1462 最弱WEAKER
ユーザー 👑 H20H20
提出日時 2021-04-02 21:34:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 361 ms
コンパイル使用メモリ 87,016 KB
実行使用メモリ 71,636 KB
最終ジャッジ日時 2023-08-25 11:37:49
合計ジャッジ時間 2,920 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,396 KB
testcase_01 AC 70 ms
71,388 KB
testcase_02 AC 70 ms
71,356 KB
testcase_03 AC 72 ms
71,104 KB
testcase_04 AC 72 ms
71,328 KB
testcase_05 AC 71 ms
71,464 KB
testcase_06 AC 71 ms
71,536 KB
testcase_07 AC 71 ms
71,052 KB
testcase_08 AC 69 ms
71,616 KB
testcase_09 AC 70 ms
71,416 KB
testcase_10 AC 67 ms
71,544 KB
testcase_11 AC 68 ms
71,396 KB
testcase_12 AC 68 ms
71,448 KB
testcase_13 AC 70 ms
71,636 KB
testcase_14 AC 70 ms
71,400 KB
testcase_15 AC 70 ms
71,448 KB
testcase_16 AC 69 ms
71,408 KB
testcase_17 AC 70 ms
71,588 KB
testcase_18 AC 68 ms
71,252 KB
testcase_19 AC 70 ms
71,364 KB
testcase_20 AC 70 ms
71,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

########関数部分##############
def Base_10_to_n(X, n):
    if (int(X/n)):
        return Base_10_to_n(int(X/n), n)+str(X%n)
    return str(X%n)
############################


N = int(input())
x3 = list(Base_10_to_n(N, 3))
temp = 0
for x in x3:
    temp += int(x)
if temp%2==0:
    print('YES')
else:
    print('NO')
0