結果

問題 No.1389 Clumsy Calculation
コンテスト
ユーザー zeronosu77108
提出日時 2021-02-12 21:51:51
言語 Kotlin
(2.3.20)
コンパイル:
kotlinc _filename_ -include-runtime -d main.jar
実行:
kotlin main.jar
結果
MLE  
(最新)
AC  
(最初)
実行時間 -
コード長 245 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 10,497 ms
コンパイル使用メモリ 457,580 KB
実行使用メモリ 541,488 KB
最終ジャッジ日時 2026-04-02 18:25:26
合計ジャッジ時間 18,960 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25 MLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import kotlin.collections.*
import kotlin.math.*

@kotlin.ExperimentalStdlibApi
fun main() {
    val (n, x) = readLine()!!.split(" ").map { it.toLong() }
    val s = readLine()!!.split(" ").map { it.toLong() }.sum()

    println((s - x*n + x))
}
0