結果

問題 No.1249 小学校1年生の夢
ユーザー 遭難者遭難者
提出日時 2020-10-09 23:06:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 367 bytes
コンパイル時間 2,077 ms
コンパイル使用メモリ 71,864 KB
実行使用メモリ 57,944 KB
最終ジャッジ日時 2023-09-27 19:30:22
合計ジャッジ時間 7,877 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,024 KB
testcase_01 AC 119 ms
55,556 KB
testcase_02 AC 120 ms
55,608 KB
testcase_03 AC 121 ms
55,088 KB
testcase_04 AC 120 ms
55,700 KB
testcase_05 AC 120 ms
55,560 KB
testcase_06 AC 122 ms
55,564 KB
testcase_07 AC 123 ms
55,396 KB
testcase_08 AC 121 ms
55,812 KB
testcase_09 AC 121 ms
55,884 KB
testcase_10 AC 120 ms
55,620 KB
testcase_11 AC 121 ms
55,508 KB
testcase_12 AC 119 ms
55,620 KB
testcase_13 AC 119 ms
55,036 KB
testcase_14 AC 120 ms
55,384 KB
testcase_15 AC 120 ms
55,148 KB
testcase_16 AC 120 ms
55,428 KB
testcase_17 AC 121 ms
55,408 KB
testcase_18 AC 121 ms
55,596 KB
testcase_19 AC 121 ms
55,196 KB
testcase_20 AC 120 ms
55,304 KB
testcase_21 AC 120 ms
55,412 KB
testcase_22 AC 119 ms
55,416 KB
testcase_23 AC 119 ms
55,596 KB
testcase_24 AC 118 ms
55,676 KB
testcase_25 AC 119 ms
55,500 KB
testcase_26 AC 119 ms
55,596 KB
testcase_27 AC 118 ms
55,552 KB
testcase_28 AC 117 ms
55,644 KB
testcase_29 AC 117 ms
57,944 KB
testcase_30 AC 120 ms
55,444 KB
testcase_31 AC 118 ms
55,656 KB
testcase_32 AC 119 ms
55,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		if(Integer.parseInt(sc.next()) + Integer.parseInt(sc.next()) == Integer.parseInt(sc.next())) ou.println("Correct");
		else ou.print("Incorrect");
		ou.flush();
		sc.close();
	}
}
0