結果

問題 No.400 鏡
ユーザー バカらっくバカらっく
提出日時 2018-03-01 15:53:29
言語 Swift
(5.10.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 477 ms
コンパイル使用メモリ 106,220 KB
実行使用メモリ 7,684 KB
最終ジャッジ日時 2023-08-20 10:21:46
合計ジャッジ時間 1,167 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,324 KB
testcase_01 AC 3 ms
7,556 KB
testcase_02 AC 3 ms
7,624 KB
testcase_03 AC 3 ms
7,572 KB
testcase_04 AC 3 ms
7,332 KB
testcase_05 AC 3 ms
7,684 KB
testcase_06 AC 3 ms
7,624 KB
testcase_07 AC 3 ms
7,376 KB
testcase_08 AC 3 ms
7,444 KB
testcase_09 AC 3 ms
7,424 KB
testcase_10 AC 3 ms
7,396 KB
testcase_11 AC 3 ms
7,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let inpt = readLine()!.map{$0}

var ans = ""

for i in 0..<inpt.count {
    if(inpt[inpt.count-1-i]=="<") {
        ans+=">"
    } else {
        ans+="<"
    }
}

print(ans)
0