結果

問題 No.1462 最弱WEAKER
ユーザー brthyyjpbrthyyjp
提出日時 2021-04-02 21:29:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 264 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 71,512 KB
最終ジャッジ日時 2023-08-25 11:29:00
合計ジャッジ時間 2,711 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,512 KB
testcase_01 AC 67 ms
71,140 KB
testcase_02 AC 67 ms
71,188 KB
testcase_03 AC 68 ms
71,236 KB
testcase_04 AC 67 ms
71,408 KB
testcase_05 AC 68 ms
71,416 KB
testcase_06 AC 67 ms
71,356 KB
testcase_07 AC 67 ms
71,124 KB
testcase_08 AC 67 ms
71,396 KB
testcase_09 AC 68 ms
71,240 KB
testcase_10 AC 67 ms
71,332 KB
testcase_11 AC 67 ms
71,468 KB
testcase_12 AC 65 ms
71,512 KB
testcase_13 AC 68 ms
71,352 KB
testcase_14 AC 67 ms
71,440 KB
testcase_15 AC 68 ms
71,364 KB
testcase_16 AC 68 ms
71,456 KB
testcase_17 AC 67 ms
71,244 KB
testcase_18 AC 67 ms
71,328 KB
testcase_19 AC 69 ms
71,232 KB
testcase_20 AC 67 ms
71,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
def base_10_to_n(x, n):
    if x//n:
        return base_10_to_n(x//n, n)+str(x%n)
    else:
        return str(x%n)

s = base_10_to_n(n, 3)
#print(s)
t = 0
for c in s:
    t += int(c)
#print(t)
if t%2 == 0:
    print('YES')
else:
    print('NO')
0