結果
| 問題 |
No.1644 Eight Digits
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-21 18:52:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 128 ms / 1,000 ms |
| コード長 | 211 bytes |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-11-25 18:45:08 |
| 合計ジャッジ時間 | 4,534 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
from itertools import permutations
k=int(input())
a='12345678'
ans=0
for seq in permutations(range(8)):
s=''
for i in range(8):
s+=a[seq[i]]
s=int(s)
if s%k==0:
ans+=1
print(ans)