結果
| 問題 | No.3726 Flawless Flow |
| コンテスト | |
| ユーザー |
sig
|
| 提出日時 | 2026-09-22 11:29:30 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 378 bytes |
| 記録 | |
| コンパイル時間 | 64 ms |
| コンパイル使用メモリ | 82,140 KB |
| 実行使用メモリ | 85,884 KB |
| 最終ジャッジ日時 | 2026-09-22 11:29:35 |
| 合計ジャッジ時間 | 4,751 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 48 WA * 11 |
ソースコード
n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) ind = [0]*(n+1) for i in range(n): ind[b[i]] = i ans = [] ans.append(a[:]) for i in range(n): can = True for j in range(n-1): if can == False: can = True else: if ind[a[j]] > ind[a[j+1]]: a[j],a[j+1] = a[j+1],a[j] can = False ans.append(a[:]) for i in ans: print(*i)
sig