結果

問題 No.1644 Eight Digits
ユーザー googol_S0googol_S0
提出日時 2021-08-13 21:37:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 60 ms / 1,000 ms
コード長 144 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 82,248 KB
実行使用メモリ 76,192 KB
最終ジャッジ日時 2024-04-14 17:07:56
合計ジャッジ時間 2,763 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
75,872 KB
testcase_01 AC 54 ms
75,756 KB
testcase_02 AC 55 ms
75,816 KB
testcase_03 AC 55 ms
75,816 KB
testcase_04 AC 58 ms
75,844 KB
testcase_05 AC 58 ms
75,864 KB
testcase_06 AC 58 ms
75,680 KB
testcase_07 AC 57 ms
75,784 KB
testcase_08 AC 54 ms
75,708 KB
testcase_09 AC 58 ms
75,964 KB
testcase_10 AC 58 ms
75,796 KB
testcase_11 AC 59 ms
76,192 KB
testcase_12 AC 58 ms
75,804 KB
testcase_13 AC 57 ms
76,140 KB
testcase_14 AC 59 ms
75,916 KB
testcase_15 AC 60 ms
75,864 KB
testcase_16 AC 57 ms
76,160 KB
testcase_17 AC 59 ms
76,036 KB
testcase_18 AC 58 ms
75,784 KB
testcase_19 AC 54 ms
75,828 KB
testcase_20 AC 58 ms
75,860 KB
testcase_21 AC 58 ms
75,844 KB
testcase_22 AC 59 ms
75,836 KB
testcase_23 AC 56 ms
75,860 KB
testcase_24 AC 56 ms
75,768 KB
testcase_25 AC 56 ms
75,928 KB
testcase_26 AC 56 ms
75,824 KB
testcase_27 AC 55 ms
76,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import *
K=int(input())
P=permutations(list('12345678'))
ANS=0
for p in P:
  x=int(''.join(p))
  if x%K==0:
    ANS+=1
print(ANS)
0