結果

問題 No.1462 最弱WEAKER
ユーザー roarisroaris
提出日時 2021-04-02 21:24:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 398 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 87,168 KB
実行使用メモリ 71,904 KB
最終ジャッジ日時 2023-08-25 11:22:26
合計ジャッジ時間 3,217 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
71,644 KB
testcase_01 AC 88 ms
71,852 KB
testcase_02 AC 88 ms
71,792 KB
testcase_03 AC 89 ms
71,608 KB
testcase_04 AC 90 ms
71,756 KB
testcase_05 AC 89 ms
71,412 KB
testcase_06 AC 88 ms
71,884 KB
testcase_07 AC 89 ms
71,412 KB
testcase_08 AC 91 ms
71,624 KB
testcase_09 AC 89 ms
71,644 KB
testcase_10 AC 90 ms
71,672 KB
testcase_11 AC 89 ms
71,904 KB
testcase_12 AC 88 ms
71,716 KB
testcase_13 AC 90 ms
71,476 KB
testcase_14 AC 90 ms
71,640 KB
testcase_15 AC 88 ms
71,572 KB
testcase_16 AC 89 ms
71,644 KB
testcase_17 AC 88 ms
71,812 KB
testcase_18 AC 88 ms
71,744 KB
testcase_19 AC 90 ms
71,636 KB
testcase_20 AC 88 ms
71,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

"""
def f(x):
    if x in memo:
        return memo[x]
    res = False
    for k in range(x+1):
        if 3**k<=x:
            res |= not f(x-3**k)
    memo[x] = res
    return res

memo = defaultdict(int)
memo[0] = False

for i in range(100):
    print(f(i))
"""

N = int(input())

if N%2==1:
    print('NO')
else:
    print('YES')
0