結果
問題 | No.1335 1337 |
ユーザー |
|
提出日時 | 2021-06-20 20:21:31 |
言語 | Swift (6.0.3) |
結果 |
AC
|
実行時間 | 8 ms / 2,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 542 ms |
コンパイル使用メモリ | 115,584 KB |
実行使用メモリ | 9,344 KB |
最終ジャッジ日時 | 2024-06-22 22:34:37 |
合計ジャッジ時間 | 1,429 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 14 |
ソースコード
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)