結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー MitI_7MitI_7
提出日時 2017-01-07 22:30:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 438 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 8,544 KB
最終ジャッジ日時 2023-08-22 16:52:06
合計ジャッジ時間 1,229 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,352 KB
testcase_01 AC 20 ms
8,472 KB
testcase_02 AC 20 ms
8,344 KB
testcase_03 AC 18 ms
8,488 KB
testcase_04 AC 18 ms
8,344 KB
testcase_05 AC 18 ms
8,348 KB
testcase_06 AC 18 ms
8,504 KB
testcase_07 AC 18 ms
8,544 KB
testcase_08 AC 18 ms
8,536 KB
testcase_09 AC 18 ms
8,492 KB
testcase_10 AC 18 ms
8,356 KB
testcase_11 AC 18 ms
8,248 KB
testcase_12 AC 17 ms
8,540 KB
testcase_13 AC 18 ms
8,500 KB
testcase_14 AC 18 ms
8,480 KB
testcase_15 AC 18 ms
8,380 KB
testcase_16 AC 18 ms
8,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict


def main():
    A = input()
    B = input()

    if A.isnumeric() and B.isnumeric():
        if 0 <= int(A) <= 12345 and 0 <= int(B) <= 12345:
            if len(A) != 1 and A[0] == "0":
                pass
            elif len(B) != 1 and B[0] == "0":
                pass
            else:
                print("OK")
                return
    print("NG")


if __name__ == '__main__':
    main()
0