結果

問題 No.1644 Eight Digits
ユーザー O2MTO2MT
提出日時 2021-08-14 01:03:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 1,000 ms
コード長 191 bytes
コンパイル時間 162 ms
コンパイル使用メモリ 82,492 KB
実行使用メモリ 68,356 KB
最終ジャッジ日時 2024-04-14 22:32:36
合計ジャッジ時間 2,645 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
66,380 KB
testcase_01 AC 51 ms
65,416 KB
testcase_02 AC 52 ms
65,492 KB
testcase_03 AC 53 ms
66,264 KB
testcase_04 AC 53 ms
66,432 KB
testcase_05 AC 55 ms
66,300 KB
testcase_06 AC 54 ms
66,936 KB
testcase_07 AC 55 ms
67,760 KB
testcase_08 AC 54 ms
67,188 KB
testcase_09 AC 55 ms
67,180 KB
testcase_10 AC 53 ms
66,644 KB
testcase_11 AC 52 ms
67,176 KB
testcase_12 AC 52 ms
67,332 KB
testcase_13 AC 51 ms
65,420 KB
testcase_14 AC 53 ms
67,088 KB
testcase_15 AC 54 ms
66,828 KB
testcase_16 AC 52 ms
67,056 KB
testcase_17 AC 53 ms
66,936 KB
testcase_18 AC 54 ms
66,404 KB
testcase_19 AC 54 ms
66,444 KB
testcase_20 AC 54 ms
66,404 KB
testcase_21 AC 54 ms
67,188 KB
testcase_22 AC 53 ms
67,208 KB
testcase_23 AC 54 ms
68,356 KB
testcase_24 AC 52 ms
65,448 KB
testcase_25 AC 55 ms
68,260 KB
testcase_26 AC 51 ms
65,820 KB
testcase_27 AC 50 ms
65,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import permutations

K = int(input())
ans = 0

for l in permutations(range(1,9)):
  num = 0
  for i in range(8):
    num += 10**i*l[i]
  if num%K == 0:
    ans += 1

print(ans)
0