結果

問題 No.1644 Eight Digits
ユーザー shinichishinichi
提出日時 2021-08-19 18:43:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 60 ms / 1,000 ms
コード長 180 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 82,088 KB
実行使用メモリ 76,152 KB
最終ジャッジ日時 2024-04-20 21:24:00
合計ジャッジ時間 2,805 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
75,796 KB
testcase_01 AC 51 ms
75,776 KB
testcase_02 AC 52 ms
75,868 KB
testcase_03 AC 54 ms
75,896 KB
testcase_04 AC 58 ms
76,032 KB
testcase_05 AC 56 ms
76,032 KB
testcase_06 AC 60 ms
75,732 KB
testcase_07 AC 56 ms
75,776 KB
testcase_08 AC 55 ms
75,904 KB
testcase_09 AC 56 ms
75,904 KB
testcase_10 AC 56 ms
75,680 KB
testcase_11 AC 54 ms
75,904 KB
testcase_12 AC 56 ms
75,776 KB
testcase_13 AC 55 ms
75,904 KB
testcase_14 AC 54 ms
75,560 KB
testcase_15 AC 55 ms
75,904 KB
testcase_16 AC 55 ms
76,152 KB
testcase_17 AC 56 ms
75,968 KB
testcase_18 AC 56 ms
75,776 KB
testcase_19 AC 53 ms
75,904 KB
testcase_20 AC 56 ms
75,944 KB
testcase_21 AC 57 ms
75,880 KB
testcase_22 AC 57 ms
75,776 KB
testcase_23 AC 58 ms
75,776 KB
testcase_24 AC 54 ms
75,904 KB
testcase_25 AC 53 ms
75,904 KB
testcase_26 AC 54 ms
75,496 KB
testcase_27 AC 55 ms
75,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import permutations

n = int(input())
ans = 0
for num in permutations("12345678"):
    number = int("".join(num))
    if number % n == 0:
        ans += 1
print(ans)
0