結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー compass19
提出日時 2016-11-18 23:10:26
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 273 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-11-26 08:02:20
合計ジャッジ時間 1,075 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 12 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

i=input
a=i()
b=i()
for i in a:
	if not i.isdigit(): print('NG'); exit()
for i in b:
	if not i.isdigit(): print('NG'); exit()
if 0 <= int(a) <= 12345 and (int(a) == 0 or a[0] != '0') and 0 <= int(b) <= 12345 and (int(b) == 0 or b[0] != '0'):
	print('OK')
else:
	print('NG')
0