結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー ヒッキープログラミングするスレ GitHub ガチヒッキープログラミングするスレ GitHub ガチ
提出日時 2016-11-18 22:41:05
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 9,200 KB
最終ジャッジ日時 2023-08-17 11:09:56
合計ジャッジ時間 1,435 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
9,148 KB
testcase_01 AC 29 ms
9,104 KB
testcase_02 AC 33 ms
9,152 KB
testcase_03 AC 26 ms
9,116 KB
testcase_04 AC 26 ms
9,156 KB
testcase_05 AC 26 ms
9,068 KB
testcase_06 AC 26 ms
9,200 KB
testcase_07 AC 26 ms
9,152 KB
testcase_08 AC 26 ms
9,084 KB
testcase_09 AC 26 ms
9,152 KB
testcase_10 AC 26 ms
9,024 KB
testcase_11 AC 26 ms
9,024 KB
testcase_12 AC 26 ms
9,184 KB
testcase_13 AC 25 ms
9,096 KB
testcase_14 AC 26 ms
9,100 KB
testcase_15 AC 26 ms
9,180 KB
testcase_16 AC 26 ms
9,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from re import fullmatch

a = input()
b = input()

pat = '[0-9]|[1-9]\d|[1-9]\d\d|[1-9]\d{3}|1[01]\d{3}|12[012]\d\d|123[0-3]\d|1234[0-5]'

ans = 'NG'

if fullmatch(pat, a):
    if fullmatch(pat, b):
        ans = 'OK'

print(ans)
0