結果

問題 No.481 1から10
ユーザー GrenacheGrenache
提出日時 2017-02-10 22:22:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 618 bytes
コンパイル時間 4,129 ms
コンパイル使用メモリ 72,180 KB
実行使用メモリ 55,928 KB
最終ジャッジ日時 2023-08-27 21:00:05
合計ジャッジ時間 6,341 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
55,572 KB
testcase_01 AC 132 ms
55,520 KB
testcase_02 AC 137 ms
53,964 KB
testcase_03 AC 134 ms
55,732 KB
testcase_04 AC 133 ms
55,928 KB
testcase_05 AC 131 ms
55,508 KB
testcase_06 AC 133 ms
55,676 KB
testcase_07 AC 133 ms
53,944 KB
testcase_08 AC 130 ms
55,424 KB
testcase_09 AC 132 ms
55,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder481 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int[] b = new int[9];

		int sum = 0;
		for (int i = 0; i < 9; i++) {
			b[i] = sc.nextInt();
			sum += b[i];
		}

		pr.println(55 - sum);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0