警示后人

B3957 [GESP202403 三级] 完全平方数

ye_you @ 2024-08-14 14:45:01

sqrt有点玄学(返回的double),一定要先强制转换为整数再判断。


by goodwepb1 @ 2024-08-14 14:56:15

pow((int)sqrt(a[i] + a[j])

像这样饥渴


by fengzhaoyu @ 2024-08-18 15:50:10

6


by rogerfrz @ 2024-08-21 15:56:36

if(sqrt(a[i]+a[j])long(sqrt(a[i]+a[j]))==0)


by caiyunlang @ 2024-08-22 15:30:58

无语


by __Deng_Rui_Song__ @ 2024-09-06 08:21:30

@ye_you 不如预处理(大雾


by Youmh @ 2024-09-06 22:45:20

感谢大佬


|