結果

問題 No.1644 Eight Digits
ユーザー wolgnikwolgnik
提出日時 2021-08-13 21:25:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 52 ms / 1,000 ms
コード長 220 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 66,404 KB
最終ジャッジ日時 2024-04-14 16:37:53
合計ジャッジ時間 2,482 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
65,552 KB
testcase_01 AC 49 ms
64,264 KB
testcase_02 AC 46 ms
63,908 KB
testcase_03 AC 47 ms
66,116 KB
testcase_04 AC 48 ms
65,940 KB
testcase_05 AC 47 ms
65,160 KB
testcase_06 AC 49 ms
64,548 KB
testcase_07 AC 48 ms
66,404 KB
testcase_08 AC 47 ms
64,836 KB
testcase_09 AC 52 ms
65,192 KB
testcase_10 AC 48 ms
65,892 KB
testcase_11 AC 48 ms
66,280 KB
testcase_12 AC 47 ms
65,192 KB
testcase_13 AC 48 ms
65,756 KB
testcase_14 AC 48 ms
64,872 KB
testcase_15 AC 48 ms
65,812 KB
testcase_16 AC 48 ms
65,208 KB
testcase_17 AC 47 ms
65,844 KB
testcase_18 AC 48 ms
66,116 KB
testcase_19 AC 49 ms
65,408 KB
testcase_20 AC 47 ms
65,364 KB
testcase_21 AC 47 ms
66,328 KB
testcase_22 AC 48 ms
65,948 KB
testcase_23 AC 48 ms
65,468 KB
testcase_24 AC 49 ms
64,284 KB
testcase_25 AC 49 ms
64,672 KB
testcase_26 AC 47 ms
64,600 KB
testcase_27 AC 47 ms
64,268 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