結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー htensaihtensai
提出日時 2019-12-19 13:46:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 649 bytes
コンパイル時間 2,115 ms
コンパイル使用メモリ 72,532 KB
実行使用メモリ 49,460 KB
最終ジャッジ日時 2023-09-21 06:44:08
合計ジャッジ時間 4,050 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
49,164 KB
testcase_01 AC 44 ms
49,016 KB
testcase_02 AC 45 ms
49,308 KB
testcase_03 AC 45 ms
48,992 KB
testcase_04 AC 45 ms
49,400 KB
testcase_05 AC 45 ms
48,996 KB
testcase_06 AC 48 ms
48,936 KB
testcase_07 AC 45 ms
49,192 KB
testcase_08 AC 44 ms
49,120 KB
testcase_09 AC 45 ms
49,116 KB
testcase_10 AC 45 ms
49,220 KB
testcase_11 AC 45 ms
47,944 KB
testcase_12 AC 45 ms
49,460 KB
testcase_13 AC 44 ms
49,296 KB
testcase_14 AC 45 ms
49,124 KB
testcase_15 AC 46 ms
49,312 KB
testcase_16 AC 45 ms
49,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;

public class Main {
    static final int MOD = 1000000007;
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            for (int i = 0; i < 2; i++) {
                String a = br.readLine();
                int x = Integer.parseInt(a);
                if (!a.equals(String.valueOf(x)) || x > 12345) {
                    throw new Exception();
                }
            }
            System.out.println("OK");
        } catch(Exception e) {
            System.out.println("NG");
        }
    }
}
0