经典简约
清爽简洁,回归本真
液态水晶
毛玻璃+霓虹光带
赛博朋克
霓虹故障艺术风
🚫
违规操作检测
禁止使用右键菜单
⚠️ 此操作已被系统记录
1

Eming

📝 题解 🔵 仅限 C++
题目描述
<div class="Section0"> <p class="p0"> <span style="line-height:1.5;">Eming&nbsp;is&nbsp;a&nbsp;contest&nbsp;hold&nbsp;by&nbsp;WHUACM&nbsp;training&nbsp;team.&nbsp;The&nbsp;aim&nbsp;is&nbsp;to&nbsp;select&nbsp;new&nbsp;members&nbsp;of&nbsp;the&nbsp;team.&nbsp;</span> </p> <p class="p0"> Usually,&nbsp;the&nbsp;first&nbsp;problem&nbsp;is&nbsp;a&nbsp;very&nbsp;simple&nbsp;problem&nbsp;such&nbsp;as&nbsp;“a+b&nbsp;problem”.&nbsp;But&nbsp;this&nbsp;time,&nbsp;Xioumu&nbsp;is&nbsp;tired&nbsp;of&nbsp;this&nbsp;kind&nbsp;of&nbsp;problem,&nbsp;he&nbsp;decide&nbsp;to&nbsp;solve&nbsp;“a&nbsp;and&nbsp;b&nbsp;problem”. </p> <p class="p0"> Give&nbsp;you&nbsp;the&nbsp;result&nbsp;of&nbsp;a&nbsp;+&nbsp;b&nbsp;and&nbsp;a^2&nbsp;–&nbsp;b^2,&nbsp;please&nbsp;output&nbsp;the&nbsp;result&nbsp;of&nbsp;a&nbsp;and&nbsp;b. </p> </div>
输入格式
<span>There&nbsp;are&nbsp;several&nbsp;test&nbsp;cases.&nbsp;For&nbsp;each&nbsp;case&nbsp;there&nbsp;are&nbsp;two&nbsp;double&nbsp;numbers&nbsp;indicating&nbsp;a+b&nbsp;and&nbsp;a^2-b^2.&nbsp;You&nbsp;may&nbsp;assume&nbsp;that&nbsp;a+b&nbsp;will&nbsp;not&nbsp;be&nbsp;zero.</span>
输出格式
<span>For&nbsp;each&nbsp;case&nbsp;please&nbsp;output&nbsp;the&nbsp;result&nbsp;of&nbsp;a&nbsp;and&nbsp;b&nbsp;in&nbsp;one&nbsp;line,&nbsp;rounded&nbsp;to&nbsp;2&nbsp;decimal&nbsp;places.</span>
样例
样例输入 1
3 -3
样例输出 1
1.00 2.00
提交代码
请先登录后提交

🤖 AI 解题助手

DeepSeek
就绪
👋 你好!我是 AI 解题助手。
我已阅读了这道题,可以帮你分析思路、提供代码示例。
⚠️ 请先登录后使用