結果

問題 No.1644 Eight Digits
ユーザー mahiro72mahiro72
提出日時 2021-10-04 22:13:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 46 ms / 1,000 ms
コード長 159 bytes
コンパイル時間 238 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 8,320 KB
最終ジャッジ日時 2023-09-30 04:52:45
合計ジャッジ時間 2,866 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
8,152 KB
testcase_01 AC 45 ms
8,108 KB
testcase_02 AC 45 ms
8,248 KB
testcase_03 AC 44 ms
8,200 KB
testcase_04 AC 43 ms
8,200 KB
testcase_05 AC 43 ms
8,116 KB
testcase_06 AC 44 ms
8,116 KB
testcase_07 AC 44 ms
8,260 KB
testcase_08 AC 43 ms
8,136 KB
testcase_09 AC 43 ms
8,200 KB
testcase_10 AC 43 ms
8,192 KB
testcase_11 AC 43 ms
8,220 KB
testcase_12 AC 44 ms
8,284 KB
testcase_13 AC 43 ms
8,320 KB
testcase_14 AC 44 ms
8,292 KB
testcase_15 AC 43 ms
8,268 KB
testcase_16 AC 44 ms
8,224 KB
testcase_17 AC 43 ms
8,112 KB
testcase_18 AC 43 ms
8,080 KB
testcase_19 AC 44 ms
8,260 KB
testcase_20 AC 42 ms
8,140 KB
testcase_21 AC 43 ms
8,068 KB
testcase_22 AC 43 ms
8,144 KB
testcase_23 AC 43 ms
8,112 KB
testcase_24 AC 46 ms
8,268 KB
testcase_25 AC 42 ms
8,064 KB
testcase_26 AC 44 ms
8,124 KB
testcase_27 AC 44 ms
8,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import permutations
K = int(input())
n = '12345678'
ans = 0
for i in permutations(n,len(n)):
    if int(''.join(list(i)))%K==0:ans+=1
print(ans)
0