結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-14 23:32:51 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 114 ms / 1,000 ms |
| コード長 | 157 bytes |
| 記録 | |
| コンパイル時間 | 591 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 16,984 KB |
| 最終ジャッジ日時 | 2026-04-21 13:34:34 |
| 合計ジャッジ時間 | 5,344 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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))