結果
| 問題 |
No.1468 Colourful Pastel
|
| ユーザー |
|
| 提出日時 | 2021-04-10 12:15:11 |
| 言語 | Kotlin (2.1.0) |
| 結果 |
AC
|
| 実行時間 | 648 ms / 1,000 ms |
| コード長 | 341 bytes |
| コンパイル時間 | 13,668 ms |
| コンパイル使用メモリ | 426,260 KB |
| 実行使用メモリ | 77,012 KB |
| 最終ジャッジ日時 | 2024-07-19 18:03:42 |
| 合計ジャッジ時間 | 21,594 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
コンパイルメッセージ
Main.kt:3:9: warning: variable 'n' is never used
val n = readLine()!!.toInt()
^
ソースコード
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)
}
}
}