by@coil_kpc
WA
5479ms
fun main() {
var s = readLine()!!
println(s)
val r=Regex("T")
for (i in 1..48) {
readLine()
println(r.replace(s,"."))
}
val p = r.find(s)!!.range.start;
val t = readLine()!!
val l = p-Regex("K").find(t)!!.range.start+1;
println(Regex("K").replace(t,"K"+".".repeat(l)))
} T
K
T
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release. WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.intellij.openapi.util.JDOMUtil$2 to constructor com.sun.xml.internal.stream.XMLInputFactoryImpl() WARNING: Please consider reporting this to the maintainers of com.intellij.openapi.util.JDOMUtil$2 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Exception in thread "main" kotlin.KotlinNullPointerException at CodeKt.main(code.kt:10) at CodeKt.main(code.kt)