結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 947 ms
63,280 KB
testcase_01 AC 948 ms
64,920 KB
testcase_02 AC 939 ms
62,884 KB
testcase_03 AC 944 ms
63,224 KB
testcase_04 AC 950 ms
63,108 KB
testcase_05 AC 956 ms
63,432 KB
testcase_06 AC 945 ms
64,148 KB
testcase_07 AC 967 ms
62,912 KB
testcase_08 AC 973 ms
62,964 KB
testcase_09 AC 953 ms
62,876 KB
testcase_10 AC 959 ms
64,108 KB
testcase_11 AC 958 ms
63,364 KB
testcase_12 TLE -
testcase_13 AC 967 ms
63,004 KB
testcase_14 AC 964 ms
62,980 KB
testcase_15 AC 970 ms
63,448 KB
testcase_16 AC 964 ms
63,132 KB
testcase_17 AC 965 ms
63,212 KB
testcase_18 AC 963 ms
62,856 KB
testcase_19 AC 963 ms
62,996 KB
testcase_20 AC 961 ms
63,348 KB
testcase_21 AC 948 ms
62,884 KB
testcase_22 AC 974 ms
63,308 KB
testcase_23 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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