結果

問題 No.938 賢人を探せ
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2019-12-03 23:15:12
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 11,437 ms
コンパイル使用メモリ 418,004 KB
実行使用メモリ 58,732 KB
最終ジャッジ日時 2023-08-18 16:27:59
合計ジャッジ時間 23,743 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 584 ms
58,248 KB
testcase_01 WA -
testcase_02 AC 259 ms
53,156 KB
testcase_03 WA -
testcase_04 AC 253 ms
52,760 KB
testcase_05 AC 242 ms
52,568 KB
testcase_06 AC 255 ms
53,204 KB
testcase_07 AC 259 ms
52,672 KB
testcase_08 AC 415 ms
57,396 KB
testcase_09 AC 424 ms
57,916 KB
testcase_10 AC 256 ms
52,856 KB
testcase_11 AC 438 ms
57,280 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 566 ms
58,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val i = readLine()!!.toInt()
    val cheater = LinkedHashMap<String, String>(i)
    repeat(i) {
        val (c, d) = readLine()!!.split(" ")
        cheater[c] = d
    }
    
    cheater.values.forEach { 
        // 被害者
        if (it !in cheater.keys) {
            println(it)
        }
    }
}
0