求加bug

B2001 入门测试题目

??? 要干嘛?
by Huyh12 @ 2023-05-05 20:37:06


@[huyouheng](/user/765280) 求加bug
by ShenAndy @ 2023-05-07 17:00:16


@[ShenAndy](/user/949311) 加 ```cpp return 0; ``` 试试
by banglee @ 2023-05-18 16:55:32


没有错吧
by X43344 @ 2023-07-10 14:16:13


似乎 好像 大概 八成 应该 莫有错 But..................... 代码不太严谨 ``` #include <iostream> using namespace std; int main() { long long a,b; cin>>a>>b; cout<<a+b; //return 0; :啊啊啊啊啊,你当我不存在是不是? } ```
by Monkey__King @ 2023-07-13 17:27:18


为啥我才30分 ``` #include<bits/stdc++.h> using namespace std; int pf1(int a){ int c=a*a; return c; } int pfg1(float a){ float b=0,c=0,d=0; int aa=0; while(9){ b=a; for(int i=1;i<1000;i++){ c=(a/b+b)/2; b=c; if(c==d){ return c; aa++; break; } d=c; } if(aa==0){ return d; } } } int pf2(int a){ int c=a*a; return c; } int pfg2(float a){ float b=0,c=0,d=0; int aa=0; while(9){ b=a; for(int i=1;i<1000;i++){ c=(a/b+b)/2; b=c; if(c==d){ return c; aa++; break; } d=c; } if(aa==0){ return d; } } } int main(){ int c; cin>>c; int a=pf1(c); int b=pfg1(a); int cc; cin>>cc; int aa=pf2(cc); int bb=pfg2(aa); cout<<bb+b; return 0; } ``` 帮忙看一下
by yjh18605886822 @ 2023-07-21 19:08:43


@[yjh18605886822](/user/1017111) 不妨试试 ```cpp #include<bits/stdc++.h> using namespace std; long long a,b; int main() { cin>>a>>b; cout<<a+b; return 0; } ```
by xyz2011 @ 2023-07-31 11:18:14


|