提出 #46528923


ソースコード 拡げる

n = int(input())

while n % 2 == 0:
    n = n // 2

while n % 3 == 0:
    n = n // 3

if n == 1:
    print("Yes")
else:
    print("No")

提出情報

提出日時
問題 B - 3-smooth Numbers
ユーザ hnkz_hnkz
言語 Python (CPython 3.11.4)
得点 200
コード長 150 Byte
結果 AC
実行時間 10 ms
メモリ 8664 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 4
AC × 23
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 01_handmade_04.txt, 01_handmade_05.txt, 01_handmade_06.txt, 02_random_07.txt, 02_random_08.txt, 02_random_09.txt, 02_random_10.txt, 02_random_11.txt, 02_random_12.txt, 02_random_13.txt, 02_random_14.txt, 02_random_15.txt, 02_random_16.txt, 02_random_17.txt, 02_random_18.txt, 02_random_19.txt, 02_random_20.txt, 02_random_21.txt, 02_random_22.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 10 ms 8452 KiB
00_sample_01.txt AC 10 ms 8664 KiB
00_sample_02.txt AC 10 ms 8564 KiB
00_sample_03.txt AC 10 ms 8496 KiB
01_handmade_04.txt AC 10 ms 8456 KiB
01_handmade_05.txt AC 10 ms 8460 KiB
01_handmade_06.txt AC 10 ms 8464 KiB
02_random_07.txt AC 10 ms 8532 KiB
02_random_08.txt AC 10 ms 8472 KiB
02_random_09.txt AC 10 ms 8484 KiB
02_random_10.txt AC 10 ms 8588 KiB
02_random_11.txt AC 10 ms 8488 KiB
02_random_12.txt AC 10 ms 8492 KiB
02_random_13.txt AC 10 ms 8592 KiB
02_random_14.txt AC 10 ms 8420 KiB
02_random_15.txt AC 10 ms 8596 KiB
02_random_16.txt AC 10 ms 8572 KiB
02_random_17.txt AC 10 ms 8540 KiB
02_random_18.txt AC 10 ms 8592 KiB
02_random_19.txt AC 10 ms 8512 KiB
02_random_20.txt AC 10 ms 8492 KiB
02_random_21.txt AC 10 ms 8500 KiB
02_random_22.txt AC 10 ms 8384 KiB