結果

問題 No.1335 1337
ユーザー MaboyMaboy
提出日時 2021-06-20 20:21:31
言語 Swift
(5.10.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 782 ms
コンパイル使用メモリ 103,140 KB
実行使用メモリ 8,004 KB
最終ジャッジ日時 2023-09-05 01:33:49
合計ジャッジ時間 2,318 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,740 KB
testcase_01 AC 3 ms
7,748 KB
testcase_02 AC 3 ms
7,888 KB
testcase_03 AC 3 ms
7,672 KB
testcase_04 AC 3 ms
7,852 KB
testcase_05 AC 3 ms
7,728 KB
testcase_06 AC 3 ms
8,004 KB
testcase_07 AC 3 ms
7,748 KB
testcase_08 AC 3 ms
7,768 KB
testcase_09 AC 3 ms
7,748 KB
testcase_10 AC 3 ms
7,728 KB
testcase_11 AC 3 ms
7,836 KB
testcase_12 AC 3 ms
7,816 KB
testcase_13 AC 3 ms
7,812 KB
testcase_14 AC 3 ms
7,748 KB
testcase_15 AC 3 ms
7,788 KB
testcase_16 AC 3 ms
7,836 KB
testcase_17 AC 3 ms
7,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let a = String(readLine()!)
let s = String(readLine()!)
var t = ""
for i in s{
    if i.isNumber{
        let j = a.index(a.startIndex, offsetBy: i.wholeNumberValue!)
        t += String(a[j])
    }else{
        t += String(i)
    }
}
print(t)
0