結果

問題 No.2041 E-mail Address
ユーザー 箱星
提出日時 2022-04-24 22:41:59
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 306 ms / 2,000 ms
コード長 308 bytes
コンパイル時間 10,185 ms
コンパイル使用メモリ 431,344 KB
実行使用メモリ 54,476 KB
最終ジャッジ日時 2024-09-20 03:00:13
合計ジャッジ時間 14,757 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val s = readln()
    var skip = false
    for (c in s) {
        if (c == '(') {
            skip = true
        }
        if (c == ')') {
            skip = false
            print("@")
            continue
        }
        if (!skip) {
            print(c)
        }
    }
    println()
}
0