結果

問題 No.1644 Eight Digits
ユーザー MitarushiMitarushi
提出日時 2021-07-29 12:27:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 1,000 ms
コード長 156 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 76,396 KB
最終ジャッジ日時 2024-04-14 16:03:56
合計ジャッジ時間 3,219 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
76,204 KB
testcase_01 AC 66 ms
76,112 KB
testcase_02 AC 65 ms
75,972 KB
testcase_03 AC 65 ms
75,912 KB
testcase_04 AC 70 ms
76,024 KB
testcase_05 AC 70 ms
76,172 KB
testcase_06 AC 70 ms
76,116 KB
testcase_07 AC 67 ms
76,240 KB
testcase_08 AC 65 ms
75,792 KB
testcase_09 AC 69 ms
75,872 KB
testcase_10 AC 70 ms
76,308 KB
testcase_11 AC 70 ms
76,068 KB
testcase_12 AC 71 ms
76,396 KB
testcase_13 AC 71 ms
75,976 KB
testcase_14 AC 69 ms
76,104 KB
testcase_15 AC 71 ms
76,072 KB
testcase_16 AC 70 ms
76,104 KB
testcase_17 AC 71 ms
76,296 KB
testcase_18 AC 71 ms
76,032 KB
testcase_19 AC 66 ms
76,076 KB
testcase_20 AC 71 ms
76,168 KB
testcase_21 AC 70 ms
76,168 KB
testcase_22 AC 70 ms
75,968 KB
testcase_23 AC 69 ms
75,824 KB
testcase_24 AC 67 ms
76,016 KB
testcase_25 AC 67 ms
76,040 KB
testcase_26 AC 65 ms
76,132 KB
testcase_27 AC 66 ms
76,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
k = int(input())

ans = 0
for p in itertools.permutations(range(1, 9)):
    i = "".join(map(str, p))
    ans += int(i) % k == 0
print(ans)
0