結果

問題 No.656 ゴルフ
ユーザー fal_rndfal_rnd
提出日時 2018-03-16 15:19:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 184 bytes
コンパイル時間 2,405 ms
コンパイル使用メモリ 74,184 KB
実行使用メモリ 56,300 KB
最終ジャッジ日時 2023-08-23 11:49:23
合計ジャッジ時間 4,162 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,584 KB
testcase_01 AC 123 ms
55,652 KB
testcase_02 AC 123 ms
56,024 KB
testcase_03 AC 123 ms
55,784 KB
testcase_04 AC 122 ms
55,724 KB
testcase_05 AC 123 ms
56,300 KB
testcase_06 AC 123 ms
55,960 KB
testcase_07 AC 123 ms
55,852 KB
testcase_08 AC 122 ms
55,924 KB
testcase_09 AC 123 ms
55,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class A{
	static Scanner s=new Scanner(System.in);

	public static void main(String[] $){
		System.out.println(s.next().chars().map(o->o=='0'?10:o-'0').sum());
	}
}
0