結果
問題 |
No.1644 Eight Digits
|
ユーザー |
|
提出日時 | 2022-12-06 12:52:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 121 ms / 1,000 ms |
コード長 | 159 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-13 04:21:17 |
合計ジャッジ時間 | 4,357 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
import itertools as ie l=[1,2,3,4,5,6,7,8] n=int(input()) a=0 for i in ie.permutations(l,8): a+=1 if int("".join([str(k) for k in i]))%n==0 else 0 print(a)