結果

問題 No.81 すべて足すだけの簡単なお仕事です。
ユーザー firiexpfiriexp
提出日時 2019-08-19 20:39:32
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 360 ms / 5,000 ms
コード長 231 bytes
コンパイル時間 16,622 ms
コンパイル使用メモリ 413,296 KB
実行使用メモリ 54,100 KB
最終ジャッジ日時 2023-09-29 22:50:15
合計ジャッジ時間 27,414 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 355 ms
53,828 KB
testcase_01 AC 349 ms
53,680 KB
testcase_02 AC 348 ms
54,100 KB
testcase_03 AC 345 ms
53,948 KB
testcase_04 AC 350 ms
53,692 KB
testcase_05 AC 347 ms
53,840 KB
testcase_06 AC 358 ms
53,752 KB
testcase_07 AC 353 ms
53,852 KB
testcase_08 AC 351 ms
53,752 KB
testcase_09 AC 358 ms
53,704 KB
testcase_10 AC 345 ms
53,620 KB
testcase_11 AC 357 ms
53,860 KB
testcase_12 AC 348 ms
53,716 KB
testcase_13 AC 336 ms
53,728 KB
testcase_14 AC 360 ms
53,888 KB
testcase_15 AC 357 ms
53,856 KB
testcase_16 AC 344 ms
53,720 KB
testcase_17 AC 347 ms
53,820 KB
testcase_18 AC 359 ms
53,632 KB
testcase_19 AC 335 ms
53,796 KB
testcase_20 AC 335 ms
53,708 KB
testcase_21 AC 334 ms
53,904 KB
testcase_22 AC 343 ms
53,588 KB
testcase_23 AC 353 ms
53,888 KB
testcase_24 AC 338 ms
53,728 KB
testcase_25 AC 340 ms
53,812 KB
testcase_26 AC 323 ms
53,872 KB
testcase_27 AC 333 ms
53,828 KB
testcase_28 AC 329 ms
53,712 KB
testcase_29 AC 335 ms
53,664 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

import java.math.BigDecimal

fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    var ans = BigDecimal(0)
    for (i in 0 until n){
        ans += readLine()!!.toBigDecimal()
    }
    println("%.10f".format(ans))
}
0