結果

問題 No.1644 Eight Digits
コンテスト
ユーザー SidewaysOwl
提出日時 2021-08-13 21:30:48
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 49 ms / 1,000 ms
+ 400µs
コード長 183 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 79 ms
コンパイル使用メモリ 80,384 KB
実行使用メモリ 83,712 KB
最終ジャッジ日時 2026-09-09 18:52:09
合計ジャッジ時間 2,992 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from itertools import permutations
k = int(input())
l = [str(i+1) for i in range(8)]
ans = 0
for tpl in permutations(l):
    if int("".join(tpl)) % k == 0:
        ans += 1
print(ans)
0