結果

問題 No.289 数字を全て足そう
ユーザー lrf141lrf141
提出日時 2017-03-25 23:45:17
言語 Scala(Beta)
(3.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 194 bytes
コンパイル時間 8,643 ms
コンパイル使用メモリ 258,192 KB
実行使用メモリ 65,032 KB
最終ジャッジ日時 2023-09-12 12:39:25
合計ジャッジ時間 34,677 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 980 ms
62,740 KB
testcase_01 AC 953 ms
63,072 KB
testcase_02 AC 951 ms
62,740 KB
testcase_03 AC 958 ms
62,832 KB
testcase_04 AC 954 ms
62,900 KB
testcase_05 AC 967 ms
62,748 KB
testcase_06 AC 971 ms
62,860 KB
testcase_07 AC 999 ms
62,840 KB
testcase_08 AC 984 ms
62,836 KB
testcase_09 AC 973 ms
62,688 KB
testcase_10 AC 974 ms
62,892 KB
testcase_11 AC 983 ms
63,644 KB
testcase_12 AC 987 ms
62,736 KB
testcase_13 AC 992 ms
63,124 KB
testcase_14 TLE -
testcase_15 AC 986 ms
62,636 KB
testcase_16 AC 971 ms
62,704 KB
testcase_17 AC 982 ms
62,708 KB
testcase_18 AC 984 ms
65,032 KB
testcase_19 AC 977 ms
63,160 KB
testcase_20 AC 993 ms
63,308 KB
testcase_21 AC 975 ms
62,668 KB
testcase_22 TLE -
testcase_23 AC 995 ms
62,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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