結果

問題 No.1644 Eight Digits
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2021-08-13 21:44:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 51 ms / 1,000 ms
コード長 229 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 82,160 KB
実行使用メモリ 66,636 KB
最終ジャッジ日時 2024-04-14 17:23:52
合計ジャッジ時間 2,619 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
65,888 KB
testcase_01 AC 49 ms
64,736 KB
testcase_02 AC 48 ms
64,676 KB
testcase_03 AC 49 ms
65,304 KB
testcase_04 AC 49 ms
65,844 KB
testcase_05 AC 49 ms
66,308 KB
testcase_06 AC 50 ms
65,100 KB
testcase_07 AC 49 ms
65,480 KB
testcase_08 AC 50 ms
64,896 KB
testcase_09 AC 49 ms
65,316 KB
testcase_10 AC 49 ms
65,912 KB
testcase_11 AC 49 ms
64,820 KB
testcase_12 AC 49 ms
66,636 KB
testcase_13 AC 49 ms
65,616 KB
testcase_14 AC 50 ms
65,896 KB
testcase_15 AC 49 ms
65,420 KB
testcase_16 AC 48 ms
65,720 KB
testcase_17 AC 48 ms
65,964 KB
testcase_18 AC 50 ms
65,544 KB
testcase_19 AC 48 ms
65,512 KB
testcase_20 AC 49 ms
65,232 KB
testcase_21 AC 49 ms
65,084 KB
testcase_22 AC 51 ms
65,540 KB
testcase_23 AC 51 ms
65,176 KB
testcase_24 AC 48 ms
64,536 KB
testcase_25 AC 50 ms
64,488 KB
testcase_26 AC 49 ms
64,748 KB
testcase_27 AC 48 ms
64,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
k = int(input())
ans = 0
lis = [i for i in range(1,9)]
for l in itertools.permutations(lis,8):
    count = 0
    for j in l:
        count *= 10
        count += j
    if count%k == 0:
        ans += 1
print(ans)
0