結果

問題 No.446 ゆきこーだーの雨と雪 (1)
コンテスト
ユーザー Mew_1406
提出日時 2016-11-19 01:01:58
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 283 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 77,308 KB
最終ジャッジ日時 2025-12-03 22:47:14
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

A = raw_input()
B = raw_input()
try :
    int(A)
    int(B)
except ValueError :
    print "NG"
    exit()

if (len(A)!=1 and A.lstrip("0") != A) or (len(B)!=1 and B.lstrip("0") != B) :
    print "NG"
    exit()

if int(A)>12345 or int(B)>12345:
    print("NG")
    exit()
print("OK")
0