結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー ThetaTheta
提出日時 2022-11-24 11:55:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 446 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 11,856 KB
実行使用メモリ 10,124 KB
最終ジャッジ日時 2023-10-26 03:02:26
合計ジャッジ時間 1,536 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,060 KB
testcase_01 AC 27 ms
10,060 KB
testcase_02 AC 27 ms
10,060 KB
testcase_03 RE -
testcase_04 AC 28 ms
10,060 KB
testcase_05 AC 27 ms
10,060 KB
testcase_06 RE -
testcase_07 AC 26 ms
10,060 KB
testcase_08 RE -
testcase_09 AC 27 ms
10,060 KB
testcase_10 AC 30 ms
10,060 KB
testcase_11 AC 27 ms
10,060 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    A = input()
    B = input()

    try:
        A_num = int(A)
    except ValueError:
        print("NG")
        return

    try:
        B_num = int(B)
    except ValueError:
        print("NG")
        return

    if A != str(A_num) or B != str(B_num):
        print("NG")
        return
    
    if 0 <= A <= 12345 and 0 <= B <= 12345:
        print("OK")
        return

    print("NG")


if __name__ == "__main__":
    main()
0