結果

問題 No.2042 RGB Caps
ユーザー 箱星
提出日時 2022-04-24 23:15:54
言語 Kotlin
(2.1.0)
結果
WA  
実行時間 -
コード長 174 bytes
コンパイル時間 11,825 ms
コンパイル使用メモリ 426,976 KB
実行使用メモリ 68,212 KB
最終ジャッジ日時 2024-09-20 03:03:25
合計ジャッジ時間 22,308 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 3 WA * 13
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:2:13: warning: variable 'k' is never used
    val (n, k) = readInts()
            ^

ソースコード

diff #

fun main() {
    val (n, k) = readInts()
    for (i in 0 until n) {
        print("RGB"[i % 3])
    }
    println()
}

fun readInts() = readln().split(" ").map { it.toInt() }
0