結果
| 問題 | No.1644 Eight Digits |
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-08-13 21:27:18 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 73 ms / 1,000 ms |
| コード長 | 149 bytes |
| 記録 | |
| コンパイル時間 | 365 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 80,896 KB |
| 最終ジャッジ日時 | 2026-04-19 18:48:34 |
| 合計ジャッジ時間 | 3,240 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
from itertools import permutations
n = int(input())
ans = 0
for a in permutations("12345678"):
v = int("".join(a))
ans += (v%n==0)
print(ans)
convexineq