結果
| 問題 |
No.1026 OGAWA's New Keyboard
|
| ユーザー |
|
| 提出日時 | 2020-04-29 18:31:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 91 ms / 1,000 ms |
| コード長 | 352 bytes |
| コンパイル時間 | 353 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 83,456 KB |
| 最終ジャッジ日時 | 2024-09-16 05:05:30 |
| 合計ジャッジ時間 | 2,400 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
ソースコード
#!/usr/bin/env python3
import sys
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 7)
n = int(readline())
front = []
back = []
for _ in range(n):
t, s = readline().rstrip().split()
if t == b'0':
front.append(s)
else:
back.append(s)
back.reverse()
back.extend(front)
print(b''.join(back).decode('ascii'))