結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー amowweeamowwee
提出日時 2016-12-08 19:20:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 23 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 9,240 KB
最終ジャッジ日時 2023-08-19 02:30:42
合計ジャッジ時間 1,316 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
9,140 KB
testcase_01 AC 22 ms
9,204 KB
testcase_02 AC 23 ms
9,084 KB
testcase_03 AC 21 ms
9,224 KB
testcase_04 AC 20 ms
9,080 KB
testcase_05 AC 20 ms
9,076 KB
testcase_06 AC 20 ms
9,240 KB
testcase_07 AC 21 ms
9,232 KB
testcase_08 AC 21 ms
9,212 KB
testcase_09 AC 20 ms
9,080 KB
testcase_10 AC 20 ms
9,200 KB
testcase_11 AC 20 ms
9,088 KB
testcase_12 AC 21 ms
9,144 KB
testcase_13 AC 21 ms
9,024 KB
testcase_14 AC 20 ms
9,084 KB
testcase_15 AC 21 ms
9,184 KB
testcase_16 AC 20 ms
9,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
import re
p = re.compile(r"[1-9]\d{0,4}$|0$")
ab = [p.match(input()) for i in range (2)]
if all(map(lambda x:x and int(x.group()) <= 12345, ab)):
	print("OK")
else:
	print("NG")
0