結果

問題 No.1026 OGAWA's New Keyboard
ユーザー MaboyMaboy
提出日時 2021-09-11 18:04:09
言語 Swift
(5.10.0)
結果
TLE  
実行時間 -
コード長 185 bytes
コンパイル時間 7,282 ms
コンパイル使用メモリ 131,112 KB
実行使用メモリ 7,764 KB
最終ジャッジ日時 2023-09-05 05:47:18
合計ジャッジ時間 11,724 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,764 KB
testcase_01 AC 3 ms
7,620 KB
testcase_02 AC 3 ms
7,692 KB
testcase_03 AC 3 ms
7,732 KB
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
権限があれば一括ダウンロードができます

ソースコード

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