結果

問題 No.1462 最弱WEAKER
ユーザー rodearodea
提出日時 2021-04-02 22:49:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 110 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 8,068 KB
最終ジャッジ日時 2023-08-25 13:06:23
合計ジャッジ時間 1,608 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
8,068 KB
testcase_01 AC 12 ms
7,864 KB
testcase_02 AC 13 ms
7,804 KB
testcase_03 AC 13 ms
7,752 KB
testcase_04 AC 13 ms
7,856 KB
testcase_05 WA -
testcase_06 AC 12 ms
7,820 KB
testcase_07 AC 12 ms
7,808 KB
testcase_08 AC 13 ms
7,788 KB
testcase_09 AC 12 ms
7,756 KB
testcase_10 WA -
testcase_11 AC 12 ms
7,832 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 13 ms
7,828 KB
testcase_16 AC 12 ms
7,832 KB
testcase_17 AC 12 ms
7,756 KB
testcase_18 WA -
testcase_19 AC 12 ms
7,916 KB
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

for i in range(30):
    if 3 ** i + 1 == n:
        print("YES")
        exit()

print("NO")
0