結果
問題 | No.1026 OGAWA's New Keyboard |
ユーザー |
![]() |
提出日時 | 2023-11-17 11:42:52 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 137 ms / 1,000 ms |
コード長 | 203 bytes |
コンパイル時間 | 274 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 84,480 KB |
最終ジャッジ日時 | 2024-09-26 05:21:12 |
合計ジャッジ時間 | 3,278 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 21 |
ソースコード
from collections import dequen = int(input())ans = deque()for i in range(n):a, b = input().split()if a == "0":ans.append(b)else:ans.appendleft(b)print("".join(ans))