結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー utsumidaisukeutsumidaisuke
提出日時 2017-03-04 23:34:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 423 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 11,008 KB
実行使用メモリ 8,028 KB
最終ジャッジ日時 2023-09-05 05:40:29
合計ジャッジ時間 1,187 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 16 ms
7,936 KB
testcase_02 RE -
testcase_03 AC 16 ms
7,784 KB
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 15 ms
7,928 KB
testcase_07 AC 15 ms
7,808 KB
testcase_08 AC 16 ms
7,796 KB
testcase_09 AC 16 ms
7,824 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 AC 15 ms
7,860 KB
testcase_13 AC 16 ms
7,860 KB
testcase_14 AC 15 ms
7,924 KB
testcase_15 AC 15 ms
7,928 KB
testcase_16 AC 16 ms
7,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A = input()
B = input()

num = [str(i) for i in range(10)]
ls = [A, B]

flag = 0
for i in ls:
    if int(i) > 12345:
        flag += 1

for i in ls:
    for j in i:
        if j not in num:
            flag += 1
if flag >= 1:
    None
else:
    for i in ls:
        if len(i) == 1:
            None
        else:
            if i[0] == '0':
                flag += 1
if flag == 0:
    print('OK')
else:
    print('NG')
    
0