题解列表

筛选

二级C语言-求偶数和

摘要:解题思路:用%2写注意事项:是%2不是/2;参考代码:#include<bits/stdc++.h>using namespace std;int n,s,z;int main(){     cin>……

1952: 求长方形面积

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,b;int main(){ cin>>a>>b; cout<……

[编程入门]时间设计

摘要:解题思路:数组定义来累加注意事项:判断闰年参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c,s,z[15]={0,31,28,31,3……

1669: 求圆的面积

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#define PI acos(-1)//acos(-1)为PI的精确值,头文件是math.h using namespac……

1951: 求平方和

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std ;long long a,b;int main(){    cin>>a>>b; c……

a+b非常简单

摘要:解题思路:直接求a+b注意事项:要用while,否则会错误滴参考代码:#include<iostream>#include<fstream>#include<algorithm>using names……

[编程入门]温度转换

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std ;int main(){    float f ;    cin>>f ;    f……

[编程入门]密码破译有惊喜

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    cout <<"Glmre";    return 0……

[编程入门]打印图案

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    cout<<"  *\n * *\n*****";  ……