题解列表

筛选

can can word代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){    int n;    scanf("%d ",&n);    int arr[n];    for(int……

emm,感觉有点麻烦

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){    int n;    float a,b,c,d;    a=0;b=0;c=0;d=0;    scan……

人口增长问题(简单点)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){    int n;    doubl……

三角形判断

摘要:解题思路:要注意公式即两边之和大于第三边注意事项:参考代码:#include<stdio.h>int main(){    int a,b,c;    scanf("%d%d%d",&a,&b,&c)……

汽车与走路(非常简单版)

摘要:解题思路:咱只要比较时间,因此用分支来判断情况就欧克注意事项:参考代码:#include<stdio.h>int main(){    float a;    scanf("%f",&a);    i……

晶晶赴约会

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    scanf("%d",&a);    if(a!=1&&a!=3&&a!=5)    ……

3019: 约瑟夫问题

摘要:解题思路:利用数组存储注意事项:参考代码:#include<stdio.h>int main(){     int n,m,i,j=1,count=0;     int a[10001],b[1000……

1118: Tom数(c++)

摘要:```cpp #include using namespace std; int main() { long long int num; int Tom = 0; while (ci……
优质题解

非常细节的结构体数组--日期排序(sort)

摘要:解题思路:                大致思路:一看题日期排序,有年月日那么多变量,必然要使用结构体数组来进行排序啊,加上标准库里面的sort函数,不是轻松AC吗?但是还是有一些细节问题的,不要在……

计算多项式的值

摘要:注意事项:如果用float类型,所输出的值最后两位精度不够,应选用double类型参考代码:#include<stdio.h>int main(){ double x,a,b,c,d; scanf("……