結果
| 問題 |
No.1644 Eight Digits
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-14 21:47:58 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 111 ms / 1,000 ms |
| コード長 | 175 bytes |
| コンパイル時間 | 157 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 15,744 KB |
| 最終ジャッジ日時 | 2024-10-05 21:56:56 |
| 合計ジャッジ時間 | 4,129 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
import itertools as itrt
N=int(input())
ans=0
A=list(itrt.permutations(range(1,8+1)))
for p in A:
M=sum([p[i]*(10**i) for i in range(8) ])
if M%N==0:ans+=1
print(ans)