結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー pofpof
提出日時 2020-01-19 23:41:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 25 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 9,256 KB
最終ジャッジ日時 2023-09-15 20:26:58
合計ジャッジ時間 1,507 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
8,948 KB
testcase_01 AC 25 ms
9,012 KB
testcase_02 AC 24 ms
9,012 KB
testcase_03 AC 24 ms
9,212 KB
testcase_04 AC 24 ms
8,952 KB
testcase_05 AC 25 ms
9,004 KB
testcase_06 AC 25 ms
9,256 KB
testcase_07 AC 24 ms
9,060 KB
testcase_08 AC 25 ms
9,012 KB
testcase_09 AC 25 ms
9,012 KB
testcase_10 AC 24 ms
9,016 KB
testcase_11 AC 25 ms
9,060 KB
testcase_12 AC 24 ms
9,096 KB
testcase_13 AC 24 ms
9,076 KB
testcase_14 AC 24 ms
9,188 KB
testcase_15 AC 24 ms
9,204 KB
testcase_16 AC 25 ms
9,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
a = input()
b = input()

if (re.match(r'^([1-9][0-9]*|0)$', a) is None) or \
   (re.match(r'^([1-9][0-9]*|0)$', b) is None):
    print("NG")
else:
    a = int(a)
    b = int(b)
    if 0 <= a <= 12345 and 0 <= b <= 12345:
        print("OK")
    else:
        print("NG")
0