結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 965 ms
62,984 KB
testcase_01 AC 971 ms
62,944 KB
testcase_02 AC 950 ms
62,932 KB
testcase_03 AC 954 ms
62,784 KB
testcase_04 AC 951 ms
63,372 KB
testcase_05 AC 965 ms
63,424 KB
testcase_06 AC 953 ms
62,956 KB
testcase_07 AC 974 ms
63,184 KB
testcase_08 AC 980 ms
63,004 KB
testcase_09 AC 958 ms
63,528 KB
testcase_10 AC 953 ms
63,364 KB
testcase_11 AC 956 ms
63,640 KB
testcase_12 AC 961 ms
63,048 KB
testcase_13 AC 958 ms
63,040 KB
testcase_14 AC 964 ms
63,948 KB
testcase_15 AC 963 ms
63,492 KB
testcase_16 AC 972 ms
62,976 KB
testcase_17 AC 987 ms
64,532 KB
testcase_18 AC 970 ms
63,148 KB
testcase_19 AC 967 ms
63,188 KB
testcase_20 AC 976 ms
63,216 KB
testcase_21 AC 956 ms
62,844 KB
testcase_22 TLE -
testcase_23 AC 996 ms
63,052 KB
権限があれば一括ダウンロードができます

ソースコード

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(_.asDigit).sum)
    }
}
0