結果

問題 No.1644 Eight Digits
ユーザー 👑 H20H20
提出日時 2021-08-13 22:08:39
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 99 ms / 1,000 ms
コード長 155 bytes
コンパイル時間 1,184 ms
コンパイル使用メモリ 86,756 KB
実行使用メモリ 77,360 KB
最終ジャッジ日時 2023-07-27 04:45:37
合計ジャッジ時間 4,537 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
77,204 KB
testcase_01 AC 91 ms
76,984 KB
testcase_02 AC 94 ms
77,268 KB
testcase_03 AC 93 ms
77,256 KB
testcase_04 AC 97 ms
76,884 KB
testcase_05 AC 97 ms
76,996 KB
testcase_06 AC 96 ms
77,076 KB
testcase_07 AC 94 ms
77,040 KB
testcase_08 AC 92 ms
77,100 KB
testcase_09 AC 97 ms
77,200 KB
testcase_10 AC 96 ms
77,116 KB
testcase_11 AC 98 ms
77,184 KB
testcase_12 AC 96 ms
76,968 KB
testcase_13 AC 95 ms
77,280 KB
testcase_14 AC 97 ms
77,136 KB
testcase_15 AC 94 ms
76,928 KB
testcase_16 AC 95 ms
77,200 KB
testcase_17 AC 95 ms
77,276 KB
testcase_18 AC 94 ms
77,120 KB
testcase_19 AC 90 ms
77,072 KB
testcase_20 AC 96 ms
77,212 KB
testcase_21 AC 99 ms
77,152 KB
testcase_22 AC 94 ms
77,132 KB
testcase_23 AC 93 ms
77,360 KB
testcase_24 AC 92 ms
77,068 KB
testcase_25 AC 93 ms
77,228 KB
testcase_26 AC 91 ms
77,140 KB
testcase_27 AC 89 ms
76,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
K = int(input())
S = '12345678'
ans=0
for s in itertools.permutations(S):
    if int(''.join(map(str, s)))%K==0:
        ans+=1
print(ans)
0