結果

問題 No.1644 Eight Digits
ユーザー SidewaysOwlSidewaysOwl
提出日時 2021-08-13 21:30:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 63 ms / 1,000 ms
コード長 183 bytes
コンパイル時間 477 ms
コンパイル使用メモリ 82,676 KB
実行使用メモリ 76,128 KB
最終ジャッジ日時 2024-04-14 16:48:38
合計ジャッジ時間 2,744 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
76,080 KB
testcase_01 AC 56 ms
75,832 KB
testcase_02 AC 56 ms
76,092 KB
testcase_03 AC 53 ms
75,732 KB
testcase_04 AC 57 ms
76,116 KB
testcase_05 AC 57 ms
75,848 KB
testcase_06 AC 57 ms
75,828 KB
testcase_07 AC 56 ms
75,652 KB
testcase_08 AC 59 ms
75,916 KB
testcase_09 AC 59 ms
76,048 KB
testcase_10 AC 57 ms
75,928 KB
testcase_11 AC 60 ms
76,128 KB
testcase_12 AC 59 ms
75,804 KB
testcase_13 AC 58 ms
76,004 KB
testcase_14 AC 59 ms
75,692 KB
testcase_15 AC 56 ms
75,888 KB
testcase_16 AC 57 ms
75,808 KB
testcase_17 AC 56 ms
75,920 KB
testcase_18 AC 57 ms
75,872 KB
testcase_19 AC 56 ms
75,692 KB
testcase_20 AC 56 ms
75,988 KB
testcase_21 AC 58 ms
75,876 KB
testcase_22 AC 57 ms
75,700 KB
testcase_23 AC 54 ms
75,800 KB
testcase_24 AC 54 ms
75,912 KB
testcase_25 AC 56 ms
75,988 KB
testcase_26 AC 55 ms
75,700 KB
testcase_27 AC 54 ms
75,972 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import permutations
k = int(input())
l = [str(i+1) for i in range(8)]
ans = 0
for tpl in permutations(l):
    if int("".join(tpl)) % k == 0:
        ans += 1
print(ans)
0