結果

問題 No.1644 Eight Digits
コンテスト
ユーザー 回転
提出日時 2026-01-13 16:01:40
言語 PyPy3
(7.3.17)
結果
AC  
実行時間 53 ms / 1,000 ms
コード長 142 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 264 ms
コンパイル使用メモリ 82,400 KB
実行使用メモリ 76,540 KB
最終ジャッジ日時 2026-01-13 16:01:43
合計ジャッジ時間 2,998 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from itertools import permutations
K = int(input())

ans = 0
for i in permutations("12345678"):
    ans += int("".join(i)) % K == 0
print(ans)
0