結果

問題 No.2043 Ohuton and Makura
ユーザー 👑 箱星箱星
提出日時 2022-04-24 22:53:21
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 336 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 14,090 ms
コンパイル使用メモリ 458,572 KB
実行使用メモリ 54,428 KB
最終ジャッジ日時 2023-10-20 07:31:23
合計ジャッジ時間 19,946 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 318 ms
54,336 KB
testcase_01 AC 306 ms
54,340 KB
testcase_02 AC 327 ms
54,412 KB
testcase_03 AC 321 ms
54,416 KB
testcase_04 AC 319 ms
54,428 KB
testcase_05 AC 336 ms
54,416 KB
testcase_06 AC 308 ms
54,420 KB
testcase_07 AC 320 ms
54,420 KB
testcase_08 AC 312 ms
54,412 KB
testcase_09 AC 315 ms
54,408 KB
testcase_10 AC 326 ms
54,416 KB
testcase_11 AC 328 ms
54,416 KB
testcase_12 AC 307 ms
54,332 KB
testcase_13 AC 303 ms
54,348 KB
testcase_14 AC 306 ms
54,348 KB
testcase_15 AC 308 ms
54,420 KB
testcase_16 AC 306 ms
54,404 KB
testcase_17 AC 312 ms
54,404 KB
testcase_18 AC 312 ms
54,424 KB
testcase_19 AC 330 ms
54,428 KB
testcase_20 AC 320 ms
54,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val (a, b, s) = readLongs()
    var ans = 0L
    for (x in 1..a) {
        for (y in 1..b) {
            if (x * y > s) break
            ans += (a - x + 1) * (b - y + 1)
        }
    }
    println(ans)
}

fun readLongs() = readln().split(" ").map { it.toLong() }
0