結果

問題 No.1249 小学校1年生の夢
ユーザー マサマサ
提出日時 2022-01-11 16:34:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 335 bytes
コンパイル時間 2,197 ms
コンパイル使用メモリ 74,720 KB
実行使用メモリ 54,504 KB
最終ジャッジ日時 2024-04-26 20:41:45
合計ジャッジ時間 7,336 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
54,172 KB
testcase_01 AC 122 ms
54,256 KB
testcase_02 AC 114 ms
53,016 KB
testcase_03 AC 125 ms
53,724 KB
testcase_04 AC 107 ms
52,956 KB
testcase_05 AC 123 ms
53,804 KB
testcase_06 AC 113 ms
52,652 KB
testcase_07 AC 125 ms
53,940 KB
testcase_08 AC 110 ms
52,656 KB
testcase_09 AC 118 ms
54,152 KB
testcase_10 AC 134 ms
54,012 KB
testcase_11 AC 129 ms
54,012 KB
testcase_12 AC 130 ms
54,084 KB
testcase_13 AC 128 ms
53,896 KB
testcase_14 AC 127 ms
54,160 KB
testcase_15 AC 126 ms
53,896 KB
testcase_16 AC 122 ms
54,156 KB
testcase_17 AC 118 ms
54,504 KB
testcase_18 AC 118 ms
53,948 KB
testcase_19 AC 109 ms
53,092 KB
testcase_20 AC 128 ms
54,168 KB
testcase_21 AC 119 ms
52,936 KB
testcase_22 AC 121 ms
53,900 KB
testcase_23 AC 119 ms
53,964 KB
testcase_24 AC 125 ms
53,992 KB
testcase_25 AC 118 ms
53,800 KB
testcase_26 AC 117 ms
54,056 KB
testcase_27 AC 122 ms
54,172 KB
testcase_28 AC 120 ms
54,236 KB
testcase_29 AC 120 ms
53,800 KB
testcase_30 AC 122 ms
54,132 KB
testcase_31 AC 121 ms
53,904 KB
testcase_32 AC 125 ms
53,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();

		if (c == a + b) {
			System.out.println("Correct");
		} else {
			System.out.println("Incorrect");
		}
    }
}
0