結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー ohanaohana
提出日時 2023-10-13 16:23:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 277 bytes
コンパイル時間 786 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 71,396 KB
最終ジャッジ日時 2023-10-13 16:23:32
合計ジャッジ時間 3,087 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,312 KB
testcase_01 AC 61 ms
71,300 KB
testcase_02 AC 63 ms
71,268 KB
testcase_03 AC 63 ms
71,396 KB
testcase_04 AC 63 ms
71,332 KB
testcase_05 AC 61 ms
71,328 KB
testcase_06 AC 63 ms
71,212 KB
testcase_07 AC 62 ms
71,288 KB
testcase_08 AC 63 ms
71,280 KB
testcase_09 AC 73 ms
71,260 KB
testcase_10 AC 62 ms
71,196 KB
testcase_11 AC 61 ms
71,388 KB
testcase_12 AC 65 ms
71,252 KB
testcase_13 AC 62 ms
71,380 KB
testcase_14 AC 64 ms
71,388 KB
testcase_15 AC 62 ms
71,096 KB
testcase_16 AC 61 ms
71,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A = []
A.append(input())
A.append(input())
ans = True

for a in A:
    if (
        set(list(a)) - set(list("0123456789")) == set()
        and str(int(a)) == a
        and 0 <= int(a) <= 12345
    ):
        continue
    else:
        ans = False
print("OK" if ans else "NG")
0