結果
| 問題 | No.1026 OGAWA's New Keyboard |
| ユーザー |
|
| 提出日時 | 2023-05-19 00:51:41 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 145 ms / 1,000 ms |
| + 579µs | |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 73 ms |
| コンパイル使用メモリ | 80,640 KB |
| 実行使用メモリ | 116,096 KB |
| 最終ジャッジ日時 | 2026-10-04 15:55:08 |
| 合計ジャッジ時間 | 3,093 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
ソースコード
from collections import deque
N = int(input())
TS = [input().split() for _ in range(N)]
ans = deque()
for t, s in TS:
if t=="0":
ans.append(s)
else:
ans.appendleft(s)
print("".join(ans))