結果

問題 No.516 赤と青の風船
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2019-11-19 20:40:55
言語 Kotlin
(1.9.23)
結果
RE  
実行時間 -
コード長 125 bytes
コンパイル時間 14,049 ms
コンパイル使用メモリ 432,616 KB
実行使用メモリ 56,132 KB
最終ジャッジ日時 2024-04-15 00:35:36
合計ジャッジ時間 14,690 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:6:26: warning: unnecessary non-null assertion (!!) on a non-null receiver of type Map.Entry<String, Int>
println(v.maxBy{it.value}!!.value)}
                         ^

ソースコード

diff #

fun main(){val v=HashMap<String,Int>()
for(p in 0..2){
val w=readLine()!!
v[w]=v[w]!!+1
}
println(v.maxBy{it.value}!!.value)}
0