提交记录 20512
提交时间 |
评测时间 |
2023-10-31 16:26:13 |
2023-10-31 16:26:15 |
#include <cmath>
int plus(int a, int b)
{
if(a>=0&&b>=0) return int(powl(sqrtl((long double)a) + sqrtl((long double)b), 2) - (long double)2.0 * sqrtl((long double)a) * sqrtl((long double)b));
else if(a<0&&b<0) return -int(powl(sqrtl((long double)(-a)) + sqrtl((long double)(-b)), 2) - (long double)2.0 * sqrtl((long double)(-a)) * sqrtl((long double)(-b)));
else return a+b;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 5.71 us | 12 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-09-13 00:45:09 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠