結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー DexctersuDexctersu
提出日時 2018-01-12 15:45:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 237 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 8,000 KB
最終ジャッジ日時 2023-08-25 15:35:24
合計ジャッジ時間 1,219 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 15 ms
7,852 KB
testcase_02 RE -
testcase_03 AC 15 ms
7,908 KB
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 15 ms
7,816 KB
testcase_07 WA -
testcase_08 AC 15 ms
7,968 KB
testcase_09 WA -
testcase_10 RE -
testcase_11 RE -
testcase_12 AC 15 ms
7,776 KB
testcase_13 AC 15 ms
7,772 KB
testcase_14 AC 15 ms
7,924 KB
testcase_15 AC 15 ms
7,948 KB
testcase_16 AC 14 ms
7,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a=input()
b=input()
c=int(a)
d=int(b)
if 12345<c or 12345<d:
    print("NG")
elif 2<=len(a) and a[0]==0:
    print("NG")
elif 2<=len(b) and b[0]==0:
    print("NG")
elif a.isdigit() and b.isdigit():
    print("OK")
else:
    print("NG")
0