結果
| 問題 |
No.1644 Eight Digits
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-08-13 21:27:18 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 1,000 ms |
| コード長 | 149 bytes |
| コンパイル時間 | 359 ms |
| コンパイル使用メモリ | 82,200 KB |
| 実行使用メモリ | 76,232 KB |
| 最終ジャッジ日時 | 2024-10-03 17:08:23 |
| 合計ジャッジ時間 | 3,359 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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