結果

問題 No.1644 Eight Digits
ユーザー wolgnikwolgnik
提出日時 2021-08-13 21:25:24
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 87 ms / 1,000 ms
コード長 220 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 76,380 KB
最終ジャッジ日時 2023-07-27 03:13:50
合計ジャッジ時間 3,879 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
76,264 KB
testcase_01 AC 84 ms
76,088 KB
testcase_02 AC 83 ms
76,380 KB
testcase_03 AC 84 ms
76,236 KB
testcase_04 AC 85 ms
76,248 KB
testcase_05 AC 84 ms
76,308 KB
testcase_06 AC 87 ms
76,304 KB
testcase_07 AC 83 ms
76,268 KB
testcase_08 AC 84 ms
76,276 KB
testcase_09 AC 86 ms
76,176 KB
testcase_10 AC 83 ms
76,208 KB
testcase_11 AC 84 ms
76,364 KB
testcase_12 AC 84 ms
76,292 KB
testcase_13 AC 84 ms
76,272 KB
testcase_14 AC 85 ms
76,260 KB
testcase_15 AC 83 ms
76,312 KB
testcase_16 AC 84 ms
76,260 KB
testcase_17 AC 84 ms
76,276 KB
testcase_18 AC 85 ms
76,264 KB
testcase_19 AC 83 ms
76,076 KB
testcase_20 AC 85 ms
76,316 KB
testcase_21 AC 83 ms
76,048 KB
testcase_22 AC 85 ms
76,336 KB
testcase_23 AC 85 ms
76,180 KB
testcase_24 AC 83 ms
76,160 KB
testcase_25 AC 84 ms
76,336 KB
testcase_26 AC 82 ms
76,272 KB
testcase_27 AC 83 ms
76,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from itertools import permutations as permi
input = sys.stdin.readline
K = int(input())

res = 0
for p in permi([x for x in range(1, 9)], 8):
  t = 0
  for x in p: t = t * 10 + x
  res += t % K == 0
print(res)
0