結果
| 問題 | No.516 赤と青の風船 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-11-19 20:40:55 |
| 言語 | Kotlin (2.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 125 bytes |
| 記録 | |
| コンパイル時間 | 9,842 ms |
| コンパイル使用メモリ | 438,480 KB |
| 実行使用メモリ | 54,272 KB |
| 最終ジャッジ日時 | 2024-10-04 07:04:53 |
| 合計ジャッジ時間 | 12,864 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 6 |
コンパイルメッセージ
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)}
^
ソースコード
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)}