結果

問題 No.1026 OGAWA's New Keyboard
ユーザー Maboy
提出日時 2021-09-11 18:04:09
言語 Swift
(6.0.3)
結果
TLE  
実行時間 -
コード長 185 bytes
コンパイル時間 9,936 ms
コンパイル使用メモリ 126,856 KB
実行使用メモリ 14,464 KB
最終ジャッジ日時 2024-06-23 02:14:00
合計ジャッジ時間 12,843 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4 TLE * 1
other -- * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

let n = Int(readLine()!)
var s = ""
for _ in 1...n!{
    let t = readLine()!.split(separator: " ")
    if t[0] == "0"{
        s += t[1]
    }else{
        s = t[1] + s
    }
}
print(s)
0