結果

問題 No.3062 A + B
ユーザー efunyoefunyo
提出日時 2020-04-01 22:28:13
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 300 bytes
コンパイル時間 736 ms
コンパイル使用メモリ 87,288 KB
実行使用メモリ 71,472 KB
最終ジャッジ日時 2023-09-09 19:04:46
合計ジャッジ時間 2,315 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,400 KB
testcase_01 AC 70 ms
71,332 KB
testcase_02 WA -
testcase_03 AC 70 ms
71,128 KB
testcase_04 AC 70 ms
71,192 KB
testcase_05 AC 69 ms
71,420 KB
testcase_06 AC 68 ms
71,192 KB
testcase_07 AC 69 ms
71,184 KB
testcase_08 AC 69 ms
71,408 KB
testcase_09 AC 69 ms
71,324 KB
testcase_10 AC 72 ms
71,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b = map(int, input().split())
if a>0 and b>=0:
    print('{}{}'.format(str(a), str(b)))
elif a==0  and b>=0:
    print(b)
elif a>0 and b<0:
    print(a+b)
elif a==0 and b<0:
    print(b)
elif a<0 and b>0:
    print('{}{}'.format(str(a), str(b)))
elif a<0 and b==0:
    print(a)
else:
    print(a+b)
0