結果

問題 No.1644 Eight Digits
ユーザー googol_S0googol_S0
提出日時 2021-08-13 21:37:50
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 98 ms / 1,000 ms
コード長 144 bytes
コンパイル時間 307 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 77,484 KB
最終ジャッジ日時 2023-07-27 03:42:12
合計ジャッジ時間 4,191 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
77,256 KB
testcase_01 AC 90 ms
77,064 KB
testcase_02 AC 94 ms
77,288 KB
testcase_03 AC 91 ms
77,252 KB
testcase_04 AC 92 ms
77,308 KB
testcase_05 AC 95 ms
77,276 KB
testcase_06 AC 92 ms
77,252 KB
testcase_07 AC 92 ms
77,336 KB
testcase_08 AC 94 ms
77,316 KB
testcase_09 AC 96 ms
77,424 KB
testcase_10 AC 98 ms
77,156 KB
testcase_11 AC 95 ms
77,304 KB
testcase_12 AC 96 ms
77,368 KB
testcase_13 AC 94 ms
77,388 KB
testcase_14 AC 93 ms
77,208 KB
testcase_15 AC 95 ms
77,484 KB
testcase_16 AC 94 ms
77,308 KB
testcase_17 AC 94 ms
77,364 KB
testcase_18 AC 93 ms
77,140 KB
testcase_19 AC 92 ms
77,048 KB
testcase_20 AC 94 ms
77,196 KB
testcase_21 AC 93 ms
77,280 KB
testcase_22 AC 95 ms
77,156 KB
testcase_23 AC 90 ms
77,232 KB
testcase_24 AC 90 ms
77,148 KB
testcase_25 AC 91 ms
77,360 KB
testcase_26 AC 89 ms
77,256 KB
testcase_27 AC 92 ms
77,384 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