結果

問題 No.481 1から10
ユーザー GodNegotoGodNegoto
提出日時 2019-11-01 15:43:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 346 bytes
コンパイル時間 3,874 ms
コンパイル使用メモリ 74,144 KB
実行使用メモリ 56,136 KB
最終ジャッジ日時 2023-10-13 00:49:45
合計ジャッジ時間 6,057 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
56,136 KB
testcase_01 AC 123 ms
55,448 KB
testcase_02 AC 124 ms
56,008 KB
testcase_03 AC 126 ms
56,008 KB
testcase_04 AC 126 ms
55,932 KB
testcase_05 AC 126 ms
55,664 KB
testcase_06 AC 126 ms
55,568 KB
testcase_07 AC 123 ms
55,772 KB
testcase_08 AC 124 ms
55,708 KB
testcase_09 AC 127 ms
55,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class sample6 {
	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	List<Integer> list = new ArrayList<Integer>();
	for(int i=0; i < 9; i++) {
		list.add(sc.nextInt());
	}
	//int n = 0;
	int sum = 0;
	for(int i=0; i<9; i++) {
		
		sum += list.get(i);
	}
	System.out.println(55 - sum);
	}
}
0