結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
SidewaysOwl
|
| 提出日時 | 2021-08-13 21:30:48 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 1,000 ms |
| コード長 | 183 bytes |
| 記録 | |
| コンパイル時間 | 238 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 80,896 KB |
| 最終ジャッジ日時 | 2026-04-19 18:58:12 |
| 合計ジャッジ時間 | 2,812 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
from itertools import permutations
k = int(input())
l = [str(i+1) for i in range(8)]
ans = 0
for tpl in permutations(l):
if int("".join(tpl)) % k == 0:
ans += 1
print(ans)
SidewaysOwl