結果

問題 No.1644 Eight Digits
ユーザー aqua_tenhouaqua_tenhou
提出日時 2021-08-13 21:27:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 56 ms / 1,000 ms
コード長 221 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 70,164 KB
最終ジャッジ日時 2024-04-14 16:42:11
合計ジャッジ時間 2,544 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
69,144 KB
testcase_01 AC 52 ms
68,232 KB
testcase_02 AC 51 ms
68,876 KB
testcase_03 AC 51 ms
69,096 KB
testcase_04 AC 51 ms
68,872 KB
testcase_05 AC 50 ms
70,164 KB
testcase_06 AC 53 ms
68,588 KB
testcase_07 AC 52 ms
68,708 KB
testcase_08 AC 52 ms
69,284 KB
testcase_09 AC 52 ms
68,988 KB
testcase_10 AC 52 ms
69,376 KB
testcase_11 AC 51 ms
69,444 KB
testcase_12 AC 51 ms
69,600 KB
testcase_13 AC 51 ms
69,288 KB
testcase_14 AC 52 ms
69,808 KB
testcase_15 AC 51 ms
69,504 KB
testcase_16 AC 51 ms
69,884 KB
testcase_17 AC 52 ms
68,812 KB
testcase_18 AC 53 ms
69,668 KB
testcase_19 AC 51 ms
69,060 KB
testcase_20 AC 51 ms
69,592 KB
testcase_21 AC 51 ms
68,520 KB
testcase_22 AC 52 ms
68,896 KB
testcase_23 AC 52 ms
68,672 KB
testcase_24 AC 50 ms
67,524 KB
testcase_25 AC 52 ms
68,604 KB
testcase_26 AC 50 ms
67,584 KB
testcase_27 AC 50 ms
67,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools

k = int(input())

s = list(range(1,9))
lis = list(itertools.permutations(s))

ans = 0

for x in lis:
    d = 0
    for y in x:
        d *= 10
        d += y
    if d%k == 0:
        ans += 1
print(ans)
0