結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー trineutron
提出日時 2020-12-30 16:29:33
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 378 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-07 16:37:31
合計ジャッジ時間 1,451 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

a = input()
b = input()
for c in a:
    if c not in '0123456789':
        print('NG')
        exit()
for c in b:
    if c not in '0123456789':
        print('NG')
        exit()
if a != str(int(a)):
    print('NG')
    exit()
if b != str(int(b)):
    print('NG')
    exit()
if int(a) > 12345:
    print('NG')
    exit()
if int(b) > 12345:
    print('NG')
    exit()
print('OK')
0