結果

問題 No.1389 Clumsy Calculation
ユーザー face4face4
提出日時 2021-04-10 23:26:18
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 599 ms / 2,000 ms
コード長 148 bytes
コンパイル時間 12,600 ms
コンパイル使用メモリ 418,688 KB
実行使用メモリ 68,808 KB
最終ジャッジ日時 2023-09-09 03:23:47
合計ジャッジ時間 30,401 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 296 ms
52,916 KB
testcase_01 AC 291 ms
52,948 KB
testcase_02 AC 296 ms
52,936 KB
testcase_03 AC 351 ms
53,460 KB
testcase_04 AC 348 ms
53,276 KB
testcase_05 AC 360 ms
53,224 KB
testcase_06 AC 350 ms
53,376 KB
testcase_07 AC 352 ms
53,492 KB
testcase_08 AC 290 ms
53,428 KB
testcase_09 AC 592 ms
68,532 KB
testcase_10 AC 502 ms
64,464 KB
testcase_11 AC 331 ms
53,564 KB
testcase_12 AC 330 ms
53,276 KB
testcase_13 AC 328 ms
53,232 KB
testcase_14 AC 586 ms
68,808 KB
testcase_15 AC 580 ms
68,592 KB
testcase_16 AC 589 ms
68,532 KB
testcase_17 AC 599 ms
68,500 KB
testcase_18 AC 583 ms
68,656 KB
testcase_19 AC 590 ms
68,588 KB
testcase_20 AC 584 ms
68,548 KB
testcase_21 AC 586 ms
68,500 KB
testcase_22 AC 584 ms
68,760 KB
testcase_23 AC 587 ms
68,512 KB
testcase_24 AC 591 ms
68,464 KB
testcase_25 AC 584 ms
68,528 KB
testcase_26 AC 574 ms
62,524 KB
testcase_27 AC 594 ms
68,612 KB
testcase_28 AC 592 ms
68,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val (n, x) = readLine()!!.split(" ").map { it.toLong() }
    println(readLine()!!.split(" ").sumOf { it.toLong() } - (n - 1) * x)
}
0