結果

問題 No.289 数字を全て足そう
ユーザー ぴろず
提出日時 2015-10-17 15:31:56
言語 Java
(openjdk 23)
結果
AC  
実行時間 145 ms / 1,000 ms
コード長 245 bytes
コンパイル時間 2,203 ms
コンパイル使用メモリ 86,356 KB
実行使用メモリ 54,140 KB
最終ジャッジ日時 2024-10-07 20:22:30
合計ジャッジ時間 6,082 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

package no289;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println(sc.next().chars().filter(Character::isDigit).map(x -> (x - '0')).sum());
	}

}
0