結果

問題 No.1517 Party Location
ユーザー バカらっくバカらっく
提出日時 2022-02-03 14:23:34
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 312 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 17,764 ms
コンパイル使用メモリ 413,616 KB
実行使用メモリ 54,520 KB
最終ジャッジ日時 2023-09-02 04:18:57
合計ジャッジ時間 21,788 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 303 ms
52,860 KB
testcase_01 AC 298 ms
53,356 KB
testcase_02 AC 304 ms
53,264 KB
testcase_03 AC 305 ms
52,816 KB
testcase_04 AC 299 ms
52,896 KB
testcase_05 AC 300 ms
52,824 KB
testcase_06 AC 295 ms
52,896 KB
testcase_07 AC 294 ms
52,780 KB
testcase_08 AC 296 ms
52,892 KB
testcase_09 AC 304 ms
52,732 KB
testcase_10 AC 305 ms
53,036 KB
testcase_11 AC 307 ms
52,952 KB
testcase_12 AC 301 ms
52,776 KB
testcase_13 AC 312 ms
54,520 KB
testcase_14 AC 306 ms
52,856 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

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