結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-04 22:13:42 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0) |
| 結果 |
AC
|
| 実行時間 | 114 ms / 1,000 ms |
| + 641µs | |
| コード長 | 159 bytes |
| 記録 | |
| コンパイル時間 | 289 ms |
| コンパイル使用メモリ | 21,536 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-08-23 14:20:09 |
| 合計ジャッジ時間 | 5,467 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
from itertools import permutations
K = int(input())
n = '12345678'
ans = 0
for i in permutations(n,len(n)):
if int(''.join(list(i)))%K==0:ans+=1
print(ans)