結果
| 問題 | No.2740 Old Maid |
| コンテスト | |
| ユーザー |
taurus
|
| 提出日時 | 2024-04-20 13:29:42 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
TLE
不安定
|
| 実行時間 | - |
| コード長 | 256 bytes |
| 記録 | |
| コンパイル時間 | 55 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 31,048 KB |
| 最終ジャッジ日時 | 2026-09-14 15:22:07 |
| 合計ジャッジ時間 | 10,990 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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