結果

問題 No.1644 Eight Digits
ユーザー OR6107OR6107
提出日時 2021-08-13 21:32:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 1,000 ms
コード長 314 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 82,860 KB
実行使用メモリ 82,892 KB
最終ジャッジ日時 2024-04-14 16:50:41
合計ジャッジ時間 3,399 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
82,484 KB
testcase_01 AC 75 ms
82,868 KB
testcase_02 AC 74 ms
82,392 KB
testcase_03 AC 74 ms
82,864 KB
testcase_04 AC 75 ms
82,892 KB
testcase_05 AC 80 ms
82,708 KB
testcase_06 AC 75 ms
82,404 KB
testcase_07 AC 78 ms
82,392 KB
testcase_08 AC 74 ms
82,416 KB
testcase_09 AC 76 ms
82,416 KB
testcase_10 AC 76 ms
82,384 KB
testcase_11 AC 76 ms
82,560 KB
testcase_12 AC 75 ms
82,560 KB
testcase_13 AC 76 ms
82,328 KB
testcase_14 AC 77 ms
82,560 KB
testcase_15 AC 77 ms
82,816 KB
testcase_16 AC 77 ms
82,560 KB
testcase_17 AC 76 ms
82,688 KB
testcase_18 AC 76 ms
82,836 KB
testcase_19 AC 75 ms
82,560 KB
testcase_20 AC 76 ms
82,400 KB
testcase_21 AC 76 ms
82,560 KB
testcase_22 AC 76 ms
82,344 KB
testcase_23 AC 76 ms
82,644 KB
testcase_24 AC 74 ms
82,560 KB
testcase_25 AC 75 ms
82,340 KB
testcase_26 AC 75 ms
82,364 KB
testcase_27 AC 75 ms
82,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools
list = list(itertools.permutations(range(1,9)))
numbers = []
for i in range(len(list)):
  number = ""
  for j in range(len(list[i])):
    number += str(list[i][j])
  numbers.append(int(number))
k = int(input())
ans = 0
for i in range(len(numbers)):
  if numbers[i] % k == 0:
    ans+=1
print(ans)
0