結果
| 問題 |
No.1644 Eight Digits
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-08-13 21:44:18 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 1,000 ms |
| コード長 | 229 bytes |
| コンパイル時間 | 347 ms |
| コンパイル使用メモリ | 82,192 KB |
| 実行使用メモリ | 65,408 KB |
| 最終ジャッジ日時 | 2024-10-03 18:10:55 |
| 合計ジャッジ時間 | 2,414 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)