結果
| 問題 | No.1026 OGAWA's New Keyboard |
| ユーザー |
|
| 提出日時 | 2023-07-29 13:09:57 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 120 ms / 1,000 ms |
| コード長 | 183 bytes |
| 記録 | |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 96,512 KB |
| 最終ジャッジ日時 | 2026-04-24 07:39:38 |
| 合計ジャッジ時間 | 2,304 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 21 |
ソースコード
n = int(input())
S = []
T = []
for _ in range(n):
s, t = input().split()
if s == "0":
T.append(t)
else:
S.append(t)
ans = S[::-1] + T
print(*ans, sep="")