結果
問題 |
No.1644 Eight Digits
|
ユーザー |
|
提出日時 | 2021-08-14 23:32:51 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 65 ms / 1,000 ms |
コード長 | 157 bytes |
コンパイル時間 | 276 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 13,824 KB |
最終ジャッジ日時 | 2024-10-06 02:26:37 |
合計ジャッジ時間 | 2,827 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
import itertools N = int(input()) seq = "12345678" ans = [''.join(tmp) for tmp in itertools.permutations(seq) if int(''.join(tmp)) % N == 0] print(len(ans))