結果

問題 No.1249 小学校1年生の夢
ユーザー ko kiko ki
提出日時 2021-01-17 17:08:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 547 bytes
コンパイル時間 3,442 ms
コンパイル使用メモリ 71,364 KB
実行使用メモリ 56,424 KB
最終ジャッジ日時 2023-08-19 23:28:01
合計ジャッジ時間 7,481 ms
ジャッジサーバーID
(参考情報)
judge10 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,976 KB
testcase_01 AC 121 ms
55,792 KB
testcase_02 AC 123 ms
55,656 KB
testcase_03 AC 122 ms
55,964 KB
testcase_04 AC 121 ms
55,688 KB
testcase_05 AC 122 ms
55,868 KB
testcase_06 AC 123 ms
55,884 KB
testcase_07 AC 124 ms
55,984 KB
testcase_08 AC 124 ms
56,048 KB
testcase_09 AC 122 ms
53,724 KB
testcase_10 AC 123 ms
55,840 KB
testcase_11 AC 123 ms
55,764 KB
testcase_12 AC 123 ms
55,736 KB
testcase_13 AC 126 ms
55,952 KB
testcase_14 AC 123 ms
56,020 KB
testcase_15 AC 120 ms
56,020 KB
testcase_16 AC 123 ms
55,980 KB
testcase_17 AC 120 ms
56,276 KB
testcase_18 AC 123 ms
56,004 KB
testcase_19 AC 123 ms
55,372 KB
testcase_20 AC 124 ms
56,424 KB
testcase_21 AC 121 ms
55,960 KB
testcase_22 AC 121 ms
55,948 KB
testcase_23 AC 122 ms
55,996 KB
testcase_24 AC 121 ms
55,628 KB
testcase_25 AC 123 ms
56,104 KB
testcase_26 AC 124 ms
56,164 KB
testcase_27 AC 124 ms
55,976 KB
testcase_28 AC 123 ms
55,716 KB
testcase_29 AC 123 ms
56,152 KB
testcase_30 AC 124 ms
56,080 KB
testcase_31 AC 124 ms
56,276 KB
testcase_32 AC 123 ms
56,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);

        // int 1つ分を読み込む
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int ans = a + b;
        if(c == ans) {
            System.out.println("Correct");
            
        }else {
            System.out.println("Incorrect");
        }
        
    }
}
0