結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
SidewaysOwl
|
| 提出日時 | 2021-08-13 21:30:48 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 49 ms / 1,000 ms |
| + 400µs | |
| コード長 | 183 bytes |
| 記録 | |
| コンパイル時間 | 79 ms |
| コンパイル使用メモリ | 80,384 KB |
| 実行使用メモリ | 83,712 KB |
| 最終ジャッジ日時 | 2026-09-09 18:52:09 |
| 合計ジャッジ時間 | 2,992 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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