結果
問題 |
No.1644 Eight Digits
|
ユーザー |
|
提出日時 | 2021-09-20 00:55:28 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 59 ms / 1,000 ms |
コード長 | 311 bytes |
コンパイル時間 | 471 ms |
コンパイル使用メモリ | 82,024 KB |
実行使用メモリ | 76,000 KB |
最終ジャッジ日時 | 2024-07-02 05:27:52 |
合計ジャッジ時間 | 3,051 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
#!/usr/bin/env python3 import sys from itertools import permutations def main(): K = int(input()) l = [str(i) for i in range(1, 9)] ans = 0 for i in permutations(l): if int("".join(i)) % K == 0: ans += 1 print(ans) if __name__ == '__main__': main()