結果

問題 No.1644 Eight Digits
ユーザー brthyyjpbrthyyjp
提出日時 2021-08-13 21:37:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 1,000 ms
コード長 206 bytes
コンパイル時間 495 ms
コンパイル使用メモリ 82,544 KB
実行使用メモリ 76,376 KB
最終ジャッジ日時 2024-04-14 17:07:38
合計ジャッジ時間 3,428 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
76,144 KB
testcase_01 AC 59 ms
75,828 KB
testcase_02 AC 59 ms
76,048 KB
testcase_03 AC 60 ms
75,900 KB
testcase_04 AC 74 ms
76,056 KB
testcase_05 AC 68 ms
75,904 KB
testcase_06 AC 63 ms
75,900 KB
testcase_07 AC 61 ms
75,844 KB
testcase_08 AC 59 ms
75,772 KB
testcase_09 AC 62 ms
75,892 KB
testcase_10 AC 62 ms
76,120 KB
testcase_11 AC 63 ms
76,000 KB
testcase_12 AC 63 ms
76,196 KB
testcase_13 AC 63 ms
75,920 KB
testcase_14 AC 61 ms
76,312 KB
testcase_15 AC 61 ms
76,004 KB
testcase_16 AC 62 ms
75,936 KB
testcase_17 AC 62 ms
75,976 KB
testcase_18 AC 62 ms
76,376 KB
testcase_19 AC 59 ms
75,876 KB
testcase_20 AC 61 ms
75,976 KB
testcase_21 AC 62 ms
76,052 KB
testcase_22 AC 61 ms
75,832 KB
testcase_23 AC 59 ms
76,076 KB
testcase_24 AC 59 ms
76,048 KB
testcase_25 AC 60 ms
75,816 KB
testcase_26 AC 59 ms
75,892 KB
testcase_27 AC 58 ms
76,124 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

k = int(input())
import itertools
X = list(range(1, 9))
X = [str(i) for i in X]
ans = 0
for p in itertools.permutations(X, 8):
    p = ''.join(p)
    p = int(p)
    if p%k == 0:
        ans += 1
print(ans)
0