题解列表

筛选

1852: 求1+2+3+...+n的值

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,m,b,sum=0;long long gaosi(lon……

苹果和虫子

摘要:```c #include int main() { int x,y,n,a; scanf("%d %d %d",&n,&x,&y); a=n-(y/x); ……

2955: 判决素数个数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long sushu(long long x){    if(x<2) ……

2955: 判决素数个数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,m,b,sum=0;int pdsushu(int x){……

2997: 梯形面积

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){    float s = (15+2……

鸡兔同笼问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d%d",&a,&b);    printf("%d %d",2*……

计算三角形面积

摘要:![](/image_editor_upload/20230722/20230722061633_68262.png) ```c #include #include int main() {……