[编程入门]分段函数求值-题解(C语言代码) 摘要:#include int main() { int x,y; scanf("%d",&x); if(x>=10)y=3*x-11; else if(x>=1)y=2*x-1; …… 题解列表 2019年07月23日 0 点赞 0 评论 771 浏览 评分:0.0
[编程入门]三个数找最大值-题解(C语言代码) 摘要:#include int main() { int a,b,c,max; scanf("%d%d%d",&a,&b,&c); max=a; if(b>max)max=b; if…… 题解列表 2019年07月23日 0 点赞 0 评论 727 浏览 评分:0.0
[编程入门]三个数最大值-题解(C语言代码) 摘要:#include int main() { int a,b,c,max; scanf("%d%d%d",&a,&b,&c); max=a; if(b>max)max=b; if…… 题解列表 2019年07月23日 0 点赞 0 评论 674 浏览 评分:0.0
[编程入门]密码破译-题解(C语言代码) 摘要:#include int main() { char a[10]; gets(a); for(int i=0;a[i]!=0;i++) { if(a[i]=='C')a[i]…… 题解列表 2019年07月23日 0 点赞 0 评论 667 浏览 评分:0.0
IP判断-题解(C语言代码) 摘要:解题思路:  1.通过if—else嵌套层层筛选,采用反向思维,如果if表达式中为错误的判断条件…… 题解列表 2019年07月23日 0 点赞 0 评论 1155 浏览 评分:8.7
汽水瓶-题解(C语言代码) 摘要:观察可得,喝的汽水数为空瓶数除以二,向下取整。 不严格的数学证明,大概是: 若空瓶数为n,则可换汽水n/3; 这n/3个汽水喝完又可以换n/9(均为向下取整,暂且不考虑多两个空瓶的情况) 于是…… 题解列表 2019年07月23日 0 点赞 0 评论 1108 浏览 评分:0.0
[编程入门]三个数最大值-题解(C语言代码) 摘要:#include int main() { int a,b,c,max; scanf("%d%d%d",&a,&b,&c); max=a; if(max…… 题解列表 2019年07月23日 0 点赞 0 评论 1166 浏览 评分:0.0
C语言训练-自守数问题-题解(C语言代码) 摘要:解题思路: 1.观察自守数: 0-0=0 1-1=0 25-5=20 (5一位数,20末尾1个0) 36-6=30 625-25=6…… 题解列表 2019年07月23日 0 点赞 0 评论 994 浏览 评分:0.0
[编程入门]原码求补码-题解(C++代码) 摘要: #include #include #include using namespace std; int main() { string s1; cin>>s1; for(i…… 题解列表 2019年07月23日 0 点赞 0 评论 1324 浏览 评分:2.0
数据结构-图的遍历——DFS深度优先搜索-题解(C语言代码) 摘要: #include #define N 100 void dfs(int cur,int num); int e[N][N]={0},book[N]={0}; int n,A[N]={0};…… 题解列表 2019年07月23日 0 点赞 0 评论 1957 浏览 评分:0.0