結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー akitsugu777akitsugu777
提出日時 2019-07-02 11:40:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 8,284 KB
最終ジャッジ日時 2023-09-27 08:23:35
合計ジャッジ時間 1,502 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,084 KB
testcase_01 AC 16 ms
8,284 KB
testcase_02 AC 16 ms
8,028 KB
testcase_03 WA -
testcase_04 AC 14 ms
8,016 KB
testcase_05 AC 13 ms
8,060 KB
testcase_06 WA -
testcase_07 AC 14 ms
8,084 KB
testcase_08 WA -
testcase_09 AC 14 ms
8,156 KB
testcase_10 AC 15 ms
7,928 KB
testcase_11 AC 15 ms
7,996 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

a = input()
b = input()

for i in a:
    if i.isdigit() != True:
        print('NG')
        exit()

for i in b:
    if i.isdigit() != True:
        print('NG')
        exit()

A = int(a)
B = int(b)

if len(a) != len(str(A)):
    print('NG')
    exit()

if len(b) != len(str(B)):
    print('NG')
    exit()

print(A + B)
0