結果

問題 No.1026 OGAWA's New Keyboard
ユーザー pluto77pluto77
提出日時 2020-06-09 08:41:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 528 ms / 1,000 ms
コード長 189 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 11,772 KB
最終ジャッジ日時 2023-08-29 00:30:57
合計ジャッジ時間 3,738 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,568 KB
testcase_01 AC 19 ms
8,556 KB
testcase_02 AC 19 ms
8,432 KB
testcase_03 AC 20 ms
8,500 KB
testcase_04 AC 528 ms
11,772 KB
testcase_05 AC 30 ms
8,572 KB
testcase_06 AC 37 ms
8,592 KB
testcase_07 AC 329 ms
10,444 KB
testcase_08 AC 28 ms
8,452 KB
testcase_09 AC 18 ms
8,476 KB
testcase_10 AC 20 ms
8,428 KB
testcase_11 AC 19 ms
8,412 KB
testcase_12 AC 17 ms
8,416 KB
testcase_13 AC 17 ms
8,508 KB
testcase_14 AC 17 ms
8,476 KB
testcase_15 AC 18 ms
8,408 KB
testcase_16 AC 19 ms
8,428 KB
testcase_17 AC 141 ms
8,980 KB
testcase_18 AC 20 ms
8,500 KB
testcase_19 AC 129 ms
9,000 KB
testcase_20 AC 18 ms
8,604 KB
testcase_21 AC 18 ms
8,448 KB
testcase_22 AC 19 ms
8,500 KB
testcase_23 AC 20 ms
8,500 KB
testcase_24 AC 271 ms
10,148 KB
testcase_25 AC 21 ms
8,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1026
from collections import deque
n=int(input())
d=deque()
for i in range(n):
 t,s=map(str,input().split())
 if int(t):
  d.appendleft(s)
 else:
  d.append(s)
print("".join(list(d)))
0