結果

問題 No.1468 Colourful Pastel
ユーザー face4face4
提出日時 2021-04-10 12:15:11
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 735 ms / 1,000 ms
コード長 341 bytes
コンパイル時間 15,004 ms
コンパイル使用メモリ 415,716 KB
実行使用メモリ 69,080 KB
最終ジャッジ日時 2023-09-27 00:24:19
合計ジャッジ時間 28,762 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 735 ms
66,408 KB
testcase_01 AC 731 ms
64,848 KB
testcase_02 AC 315 ms
56,928 KB
testcase_03 AC 329 ms
56,960 KB
testcase_04 AC 337 ms
56,992 KB
testcase_05 AC 332 ms
56,944 KB
testcase_06 AC 338 ms
56,996 KB
testcase_07 AC 336 ms
57,092 KB
testcase_08 AC 324 ms
57,336 KB
testcase_09 AC 333 ms
57,024 KB
testcase_10 AC 317 ms
57,244 KB
testcase_11 AC 323 ms
56,980 KB
testcase_12 AC 321 ms
56,988 KB
testcase_13 AC 323 ms
57,308 KB
testcase_14 AC 328 ms
56,948 KB
testcase_15 AC 324 ms
57,312 KB
testcase_16 AC 320 ms
57,044 KB
testcase_17 AC 312 ms
56,932 KB
testcase_18 AC 322 ms
56,984 KB
testcase_19 AC 317 ms
56,996 KB
testcase_20 AC 310 ms
56,932 KB
testcase_21 AC 309 ms
56,984 KB
testcase_22 AC 313 ms
57,004 KB
testcase_23 AC 307 ms
56,924 KB
testcase_24 AC 304 ms
57,040 KB
testcase_25 AC 306 ms
56,952 KB
testcase_26 AC 311 ms
56,916 KB
testcase_27 AC 700 ms
69,080 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:9: warning: variable 'n' is never used
    val n = readLine()!!.toInt()
        ^

ソースコード

diff #

fun main() {
    val colors = listOf("Red", "Orange", "Yellow", "Green", "Cyan", "Blue", "Violet")
    val n = readLine()!!.toInt()
    val a = readLine()!!.split(" ")
    val b = readLine()!!.split(" ")
    for (color in colors) {
        if (a.count { it == color } != b.count { it == color }){
            println(color)
        }
    }
}
0