結果
| 問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-19 21:34:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 250 bytes |
| コンパイル時間 | 254 ms |
| コンパイル使用メモリ | 81,980 KB |
| 実行使用メモリ | 715,448 KB |
| 最終ジャッジ日時 | 2024-10-11 14:15:42 |
| 合計ジャッジ時間 | 4,422 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | MLE * 1 -- * 17 |
ソースコード
from itertools import permutations
N = int(input())
A = list(map(int, input().split()))
P = list(permutations(range(N), N))
x = float("inf")
for p in P:
x_i = 0
for i in p:
x_i = 10*x_i + A[i]
x = min(x_i, x)
print(x%998244353)