結果

問題 No.1249 小学校1年生の夢
ユーザー hal9009hal9009
提出日時 2021-02-28 14:09:58
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 366 bytes
コンパイル時間 2,743 ms
コンパイル使用メモリ 74,480 KB
実行使用メモリ 54,300 KB
最終ジャッジ日時 2024-04-10 15:58:47
合計ジャッジ時間 7,367 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
54,112 KB
testcase_01 AC 112 ms
54,080 KB
testcase_02 AC 108 ms
52,776 KB
testcase_03 AC 109 ms
53,388 KB
testcase_04 AC 111 ms
54,096 KB
testcase_05 AC 109 ms
53,996 KB
testcase_06 AC 108 ms
53,108 KB
testcase_07 AC 96 ms
53,016 KB
testcase_08 AC 111 ms
54,048 KB
testcase_09 AC 106 ms
52,964 KB
testcase_10 AC 106 ms
53,896 KB
testcase_11 AC 107 ms
53,896 KB
testcase_12 AC 108 ms
54,044 KB
testcase_13 AC 106 ms
53,888 KB
testcase_14 AC 109 ms
54,064 KB
testcase_15 AC 97 ms
53,272 KB
testcase_16 AC 106 ms
52,980 KB
testcase_17 AC 123 ms
53,968 KB
testcase_18 AC 107 ms
54,016 KB
testcase_19 AC 106 ms
54,300 KB
testcase_20 AC 100 ms
52,864 KB
testcase_21 AC 109 ms
54,128 KB
testcase_22 AC 99 ms
52,996 KB
testcase_23 AC 100 ms
53,164 KB
testcase_24 AC 105 ms
54,052 KB
testcase_25 AC 98 ms
52,928 KB
testcase_26 AC 107 ms
53,792 KB
testcase_27 AC 104 ms
54,040 KB
testcase_28 AC 106 ms
54,156 KB
testcase_29 AC 98 ms
53,060 KB
testcase_30 AC 114 ms
54,008 KB
testcase_31 AC 115 ms
54,012 KB
testcase_32 AC 111 ms
54,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class N1249 {
   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