結果

問題 No.1026 OGAWA's New Keyboard
ユーザー googol_S0googol_S0
提出日時 2020-04-14 15:58:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 371 ms / 1,000 ms
コード長 186 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 11,684 KB
最終ジャッジ日時 2023-10-14 10:00:11
合計ジャッジ時間 2,572 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,584 KB
testcase_01 AC 19 ms
8,596 KB
testcase_02 AC 19 ms
8,556 KB
testcase_03 AC 18 ms
8,560 KB
testcase_04 AC 371 ms
11,684 KB
testcase_05 AC 26 ms
8,492 KB
testcase_06 AC 31 ms
8,636 KB
testcase_07 AC 232 ms
10,324 KB
testcase_08 AC 24 ms
8,644 KB
testcase_09 AC 17 ms
8,556 KB
testcase_10 AC 19 ms
8,564 KB
testcase_11 AC 18 ms
8,624 KB
testcase_12 AC 17 ms
8,444 KB
testcase_13 AC 18 ms
8,452 KB
testcase_14 AC 18 ms
8,504 KB
testcase_15 AC 18 ms
8,524 KB
testcase_16 AC 19 ms
8,416 KB
testcase_17 AC 102 ms
8,972 KB
testcase_18 AC 19 ms
8,492 KB
testcase_19 AC 95 ms
9,116 KB
testcase_20 AC 19 ms
8,452 KB
testcase_21 AC 18 ms
8,496 KB
testcase_22 AC 18 ms
8,576 KB
testcase_23 AC 19 ms
8,452 KB
testcase_24 AC 192 ms
10,060 KB
testcase_25 AC 19 ms
8,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
D=deque()
N=int(input())
S=list()
for i in range(N):
  S=input().split()
  if S[0]=='1':
    D.appendleft(S[1])
  else:
    D.append(S[1])
print(''.join(D))
0