1988: 求总时间 摘要:解题思路:cost*=1.05注意事项:参考代码:#include <stdio.h> int main(){ float cost=30,sum=0; int layer; scanf…… 题解列表 2021年03月05日 0 点赞 0 评论 237 浏览 评分:0.0
1978: 分类计算。输出时用?:判断 摘要:解题思路:输出时用?:判断注意事项:参考代码:#include <stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); printf("%…… 题解列表 2021年03月05日 0 点赞 0 评论 329 浏览 评分:0.0
2008: C++函数重载练习 摘要:解题思路:注意事项:三目加括号参考代码:#include <iostream> #include <string> #include <string.h> using namespace std…… 题解列表 2021年03月05日 0 点赞 0 评论 440 浏览 评分:0.0
1977: 求中间数。排序后输出中间位 摘要:解题思路:排序后输出中间位注意事项:宏定义不明白就换成普通tab交换参考代码:#include <stdio.h> #define CHANGE(a,b) a^=b,b^=a,a^=b int m…… 题解列表 2021年03月05日 0 点赞 0 评论 570 浏览 评分:0.0
全在代码中了 摘要:#include <string.h> #include <stdio.h> #include <stdlib.h> #include <math.h> int main() { …… 题解列表 2021年03月05日 0 点赞 0 评论 441 浏览 评分:8.0
1955: 贷款计算 摘要:解题思路:注意事项:输出结果强转为 int 实现向下取整参考代码:#include <stdio.h> int main(){ int months; float total,rate,re…… 题解列表 2021年03月05日 0 点赞 0 评论 238 浏览 评分:0.0
1970: 巨大的数 摘要:解题思路:注意事项:while(n--&&scanf("%d",&num)) //利用短路功能,没有次数不会进行输入和循环参考代码:#include <stdio.h> int main(){ …… 题解列表 2021年03月05日 0 点赞 0 评论 442 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 循环处理 摘要:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[6]; int len; scanf("%s",str); …… 题解列表 2021年03月05日 0 点赞 0 评论 216 浏览 评分:0.0
1954: 话费计算 摘要:解题思路:一个变量就够了注意事项:参考代码:#include <stdio.h> int main(){ float cost; scanf("%f",&cost); printf("%…… 题解列表 2021年03月05日 0 点赞 0 评论 410 浏览 评分:0.0
1867: 王牌花色 摘要:解题思路:字符数字码值比字母小。转换10和K,统一数据位数和ASCII码值,就可以按顺序按位数比较了,faces[0]是点数,faces[1]是花色注意事项:每次输入字符(串)都要捕获结束符参考代码:…… 题解列表 2021年03月05日 0 点赞 0 评论 210 浏览 评分:0.0