結果
問題 | No.656 ゴルフ |
ユーザー | GB |
提出日時 | 2018-04-23 12:27:22 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 396 bytes |
コンパイル時間 | 3,314 ms |
コンパイル使用メモリ | 70,756 KB |
実行使用メモリ | 49,784 KB |
最終ジャッジ日時 | 2023-09-09 21:34:31 |
合計ジャッジ時間 | 3,208 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 41 ms
49,720 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 41 ms
49,216 KB |
testcase_05 | AC | 41 ms
49,228 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
import java.io.*; import java.util.*; import java.lang.*; class Main{ public static void main(String[] args) throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String n=br.readLine(); int sum=0; for(int i=0;i<n.length();i++){ int x=Character.getNumericValue(n.charAt(i)); sum+=x; } System.out.println(sum); } }