結果

問題 No.1249 小学校1年生の夢
ユーザー tentententen
提出日時 2020-10-10 06:02:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 4,716 ms
コンパイル使用メモリ 71,040 KB
実行使用メモリ 58,216 KB
最終ジャッジ日時 2023-09-27 21:04:11
合計ジャッジ時間 8,841 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
53,832 KB
testcase_01 AC 121 ms
55,980 KB
testcase_02 AC 120 ms
55,676 KB
testcase_03 AC 116 ms
55,664 KB
testcase_04 AC 119 ms
55,664 KB
testcase_05 AC 120 ms
56,132 KB
testcase_06 AC 116 ms
55,704 KB
testcase_07 AC 117 ms
55,812 KB
testcase_08 AC 120 ms
55,696 KB
testcase_09 AC 120 ms
55,788 KB
testcase_10 AC 115 ms
55,672 KB
testcase_11 AC 115 ms
56,200 KB
testcase_12 AC 118 ms
55,512 KB
testcase_13 AC 117 ms
56,244 KB
testcase_14 AC 117 ms
55,668 KB
testcase_15 AC 114 ms
55,860 KB
testcase_16 AC 117 ms
55,908 KB
testcase_17 AC 115 ms
55,892 KB
testcase_18 AC 116 ms
55,896 KB
testcase_19 AC 117 ms
55,788 KB
testcase_20 AC 116 ms
55,800 KB
testcase_21 AC 117 ms
55,740 KB
testcase_22 AC 120 ms
55,896 KB
testcase_23 AC 117 ms
56,060 KB
testcase_24 AC 116 ms
55,740 KB
testcase_25 AC 115 ms
55,528 KB
testcase_26 AC 117 ms
55,920 KB
testcase_27 AC 115 ms
56,132 KB
testcase_28 AC 118 ms
55,980 KB
testcase_29 AC 116 ms
56,216 KB
testcase_30 AC 117 ms
55,708 KB
testcase_31 AC 117 ms
58,216 KB
testcase_32 AC 116 ms
55,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		if (sc.nextInt() + sc.nextInt() == sc.nextInt()) {
		    System.out.println("Correct");
		} else {
		    System.out.println("Incorrect");
		}
	}
}
0