結果

問題 No.289 数字を全て足そう
ユーザー lrf141lrf141
提出日時 2017-03-25 23:43:28
言語 Scala(Beta)
(3.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 191 bytes
コンパイル時間 8,951 ms
コンパイル使用メモリ 252,080 KB
実行使用メモリ 64,320 KB
最終ジャッジ日時 2023-09-12 12:36:33
合計ジャッジ時間 35,297 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 996 ms
63,236 KB
testcase_01 AC 990 ms
62,928 KB
testcase_02 AC 995 ms
63,088 KB
testcase_03 AC 984 ms
64,320 KB
testcase_04 AC 984 ms
64,144 KB
testcase_05 TLE -
testcase_06 AC 999 ms
63,160 KB
testcase_07 TLE -
testcase_08 TLE -
testcase_09 TLE -
testcase_10 TLE -
testcase_11 TLE -
testcase_12 TLE -
testcase_13 TLE -
testcase_14 TLE -
testcase_15 TLE -
testcase_16 TLE -
testcase_17 TLE -
testcase_18 TLE -
testcase_19 TLE -
testcase_20 TLE -
testcase_21 AC 992 ms
62,984 KB
testcase_22 TLE -
testcase_23 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner
object no289{
    def main(args:Array[String]):Unit={
        val scan = new Scanner(System.in)
        println(scan.next.filter(_.isDigit).map(c=>c-'0').sum)
    }
}
0