結果

問題 No.1249 小学校1年生の夢
ユーザー ruase_ruase_
提出日時 2020-12-06 18:20:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 378 bytes
コンパイル時間 2,608 ms
コンパイル使用メモリ 74,832 KB
実行使用メモリ 57,648 KB
最終ジャッジ日時 2023-10-17 15:27:59
合計ジャッジ時間 8,206 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
57,316 KB
testcase_01 AC 121 ms
57,160 KB
testcase_02 AC 132 ms
57,348 KB
testcase_03 AC 115 ms
56,292 KB
testcase_04 AC 128 ms
57,340 KB
testcase_05 AC 127 ms
57,288 KB
testcase_06 AC 126 ms
57,252 KB
testcase_07 AC 124 ms
57,220 KB
testcase_08 AC 126 ms
57,348 KB
testcase_09 AC 127 ms
57,484 KB
testcase_10 AC 126 ms
57,344 KB
testcase_11 AC 114 ms
56,280 KB
testcase_12 AC 125 ms
57,448 KB
testcase_13 AC 125 ms
57,524 KB
testcase_14 AC 122 ms
57,536 KB
testcase_15 AC 120 ms
57,452 KB
testcase_16 AC 125 ms
57,260 KB
testcase_17 AC 113 ms
56,272 KB
testcase_18 AC 123 ms
57,256 KB
testcase_19 AC 116 ms
56,272 KB
testcase_20 AC 120 ms
56,272 KB
testcase_21 AC 115 ms
56,340 KB
testcase_22 AC 115 ms
56,292 KB
testcase_23 AC 124 ms
57,648 KB
testcase_24 AC 128 ms
57,596 KB
testcase_25 AC 122 ms
57,348 KB
testcase_26 AC 123 ms
57,332 KB
testcase_27 AC 125 ms
57,352 KB
testcase_28 AC 130 ms
57,500 KB
testcase_29 AC 128 ms
57,356 KB
testcase_30 AC 126 ms
57,572 KB
testcase_31 AC 127 ms
57,364 KB
testcase_32 AC 128 ms
57,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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( (A+B)== C ){
            System.out.println("Correct");
        }else{
            System.out.println("Incorrect");
        }

    }

}
0