結果
問題 | No.1335 1337 |
ユーザー |
|
提出日時 | 2021-01-15 21:21:48 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 263 ms / 2,000 ms |
コード長 | 757 bytes |
コンパイル時間 | 15,279 ms |
コンパイル使用メモリ | 439,124 KB |
実行使用メモリ | 49,872 KB |
最終ジャッジ日時 | 2024-11-26 13:02:38 |
合計ジャッジ時間 | 18,767 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 14 |
ソースコード
import java.io.PrintWriterimport java.util.*import kotlin.math.*fun PrintWriter.solve() {val a = nextLine()val s = nextLine()for (c in s) {if (c in '0'..'9') {print(a[c - '0'])} else {print(c)}}println()}fun main() {val writer = PrintWriter(System.out, false)writer.solve()writer.flush()}// region Scannerprivate var st = StringTokenizer("")private val br = System.`in`.bufferedReader()fun next(): String {while (!st.hasMoreTokens()) st = StringTokenizer(br.readLine())return st.nextToken()}fun nextInt() = next().toInt()fun nextLong() = next().toLong()fun nextLine() = br.readLine()!!fun nextDouble() = next().toDouble()// endregion