結果

問題 No.1692 Expectations
ユーザー ポールポール
提出日時 2021-10-01 21:30:41
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 819 ms / 2,000 ms
コード長 227 bytes
コンパイル時間 16,875 ms
コンパイル使用メモリ 419,632 KB
実行使用メモリ 72,772 KB
最終ジャッジ日時 2023-09-26 16:30:25
合計ジャッジ時間 30,415 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 364 ms
57,084 KB
testcase_01 AC 361 ms
57,264 KB
testcase_02 AC 386 ms
57,368 KB
testcase_03 AC 389 ms
57,656 KB
testcase_04 AC 374 ms
57,400 KB
testcase_05 AC 378 ms
57,536 KB
testcase_06 AC 387 ms
57,488 KB
testcase_07 AC 346 ms
57,420 KB
testcase_08 AC 384 ms
57,800 KB
testcase_09 AC 359 ms
57,560 KB
testcase_10 AC 687 ms
62,432 KB
testcase_11 AC 703 ms
62,244 KB
testcase_12 AC 347 ms
57,344 KB
testcase_13 AC 350 ms
57,160 KB
testcase_14 AC 578 ms
60,388 KB
testcase_15 AC 787 ms
68,536 KB
testcase_16 AC 556 ms
62,096 KB
testcase_17 AC 653 ms
64,552 KB
testcase_18 AC 604 ms
62,404 KB
testcase_19 AC 819 ms
68,856 KB
testcase_20 AC 731 ms
70,552 KB
testcase_21 AC 722 ms
72,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val (n, m) = readLine()!!.split(" ").map(String::toInt)
    val max = readLine()!!.splitToSequence(" ").map(String::toInt).toSet().size
    val min = if (max == 1 && n == m) 1 else 0
    println("$max $min")
}
0