結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー Dexctersu
提出日時 2018-01-12 15:48:00
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 264 bytes
コンパイル時間 134 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-12-24 00:20:54
合計ジャッジ時間 1,483 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 11 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

a=input()
b=input()
if 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():
    c=int(a)
    d=int(b)
    if 12345<c or 12345<d:
        print("NG")
    else:
        print("OK")
else:
    print("NG")
0