結果

問題 No.799 赤黒かーどげぇむ
ユーザー バカらっくバカらっく
提出日時 2022-02-03 12:09:32
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 295 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 12,837 ms
コンパイル使用メモリ 425,852 KB
実行使用メモリ 53,168 KB
最終ジャッジ日時 2023-09-02 03:08:05
合計ジャッジ時間 19,271 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 288 ms
52,892 KB
testcase_01 AC 287 ms
53,028 KB
testcase_02 AC 291 ms
53,168 KB
testcase_03 AC 286 ms
52,948 KB
testcase_04 AC 288 ms
52,924 KB
testcase_05 AC 287 ms
53,064 KB
testcase_06 AC 284 ms
52,928 KB
testcase_07 AC 285 ms
53,012 KB
testcase_08 AC 289 ms
52,960 KB
testcase_09 AC 289 ms
53,044 KB
testcase_10 AC 294 ms
52,932 KB
testcase_11 AC 291 ms
53,092 KB
testcase_12 AC 286 ms
52,956 KB
testcase_13 AC 290 ms
52,996 KB
testcase_14 AC 289 ms
52,956 KB
testcase_15 AC 289 ms
52,940 KB
testcase_16 AC 295 ms
52,928 KB
testcase_17 AC 291 ms
52,888 KB
testcase_18 AC 291 ms
53,056 KB
testcase_19 AC 286 ms
52,920 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val (a,b,c,d) = readLine()!!.split(" ").map { it.toInt() }
    val ans = (a..b).map {red -> (c..d).count { red != it } }.sum()
    println(ans)
}
0