結果
| 問題 | No.1335 1337 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-06-20 20:21:31 |
| 言語 | Swift (6.2.3) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 243 bytes |
| 記録 | |
| コンパイル時間 | 400 ms |
| コンパイル使用メモリ | 128,148 KB |
| 実行使用メモリ | 9,856 KB |
| 最終ジャッジ日時 | 2026-03-07 06:11:54 |
| 合計ジャッジ時間 | 1,030 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)