結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー ikawaiikawai
提出日時 2023-09-01 14:00:56
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 301 bytes
コンパイル時間 2,092 ms
コンパイル使用メモリ 71,556 KB
実行使用メモリ 67,484 KB
最終ジャッジ日時 2023-09-01 14:01:08
合計ジャッジ時間 11,387 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,384 KB
testcase_01 AC 118 ms
56,336 KB
testcase_02 AC 145 ms
56,384 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 531 ms
60,588 KB
testcase_10 AC 745 ms
64,516 KB
testcase_11 AC 756 ms
65,384 KB
testcase_12 AC 743 ms
64,420 KB
testcase_13 AC 754 ms
64,496 KB
testcase_14 AC 786 ms
67,484 KB
testcase_15 AC 732 ms
64,436 KB
testcase_16 AC 838 ms
64,684 KB
testcase_17 AC 116 ms
56,056 KB
testcase_18 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Wandbox
{
    public static void main(String[] args)
    {
    	Scanner sc = new Scanner(System.in);
    	int n = sc.nextInt();
    	int ans = 0;
    	
    	for (int i = 0; i < n; i++) {
    		ans += sc.nextInt();	
    	} 
    	
        System.out.println(ans);
    }
}
0