結果

問題 No.289 数字を全て足そう
ユーザー 5h0t4r05h0t4r0
提出日時 2015-11-02 17:25:03
言語 Scala(Beta)
(3.4.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 169 bytes
コンパイル時間 11,686 ms
コンパイル使用メモリ 248,668 KB
実行使用メモリ 64,684 KB
最終ジャッジ日時 2023-09-11 14:43:35
合計ジャッジ時間 36,902 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 996 ms
63,528 KB
testcase_01 TLE -
testcase_02 AC 993 ms
63,348 KB
testcase_03 AC 992 ms
63,120 KB
testcase_04 TLE -
testcase_05 AC 995 ms
63,496 KB
testcase_06 AC 991 ms
63,432 KB
testcase_07 TLE -
testcase_08 TLE -
testcase_09 AC 999 ms
63,424 KB
testcase_10 AC 988 ms
64,684 KB
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 988 ms
63,184 KB
testcase_22 TLE -
testcase_23 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

object Yuki289 extends App{
  val input = new java.util.Scanner(System.in)
  val s = input.next
  val result = s.filter(_.isDigit).map(_.asDigit).sum
  println(result)
}
0