結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-13 21:44:18 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 35 ms / 1,000 ms |
| + 925µs | |
| コード長 | 229 bytes |
| 記録 | |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 80,512 KB |
| 実行使用メモリ | 67,072 KB |
| 最終ジャッジ日時 | 2026-09-09 19:17:19 |
| 合計ジャッジ時間 | 2,767 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
import itertools
k = int(input())
ans = 0
lis = [i for i in range(1,9)]
for l in itertools.permutations(lis,8):
count = 0
for j in l:
count *= 10
count += j
if count%k == 0:
ans += 1
print(ans)