結果
| 問題 |
No.2740 Old Maid
|
| コンテスト | |
| ユーザー |
taurus
|
| 提出日時 | 2024-04-20 13:29:42 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 256 bytes |
| コンパイル時間 | 112 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 43,308 KB |
| 最終ジャッジ日時 | 2024-10-12 08:59:35 |
| 合計ジャッジ時間 | 7,373 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 61 |
ソースコード
N = int(input())
p = list(map(int, input().split()))
q = []
count = len(p) // 2
for _ in range(count):
min_p = min(p[:-1])
index = p.index(min_p)
q.append(p.pop(index))
q.append(p.pop(index))
ans = ' '.join([str(v) for v in q])
print(ans)
taurus