JAVA_HashTable的使用 摘要:解题思路:使用两个HashTable分别来存储两个链表,使用两个数组分别存储两个链表的key值,再使用a链表中的key对比b数组(存储b链表的key值),如果存在则删除a链表;具体如下注意事项:无参考…… 题解列表 2021年03月05日 0 点赞 0 评论 716 浏览 评分:0.0
1933: 蓝桥杯算法提高VIP-约数个数 摘要:解题思路:能整除 n 的都是 n 的约数注意事项:包括1和n本身参考代码:#include<stdio.h> int main(){ int n,num=0; scanf("%d",&n);…… 题解列表 2021年03月05日 0 点赞 0 评论 749 浏览 评分:0.0
1867: 王牌花色 摘要:解题思路:字符数字码值比字母小。转换10和K,统一数据位数和ASCII码值,就可以按顺序按位数比较了,faces[0]是点数,faces[1]是花色注意事项:每次输入字符(串)都要捕获结束符参考代码:…… 题解列表 2021年03月05日 0 点赞 0 评论 478 浏览 评分:0.0
1954: 话费计算 摘要:解题思路:一个变量就够了注意事项:参考代码:#include <stdio.h> int main(){ float cost; scanf("%f",&cost); printf("%…… 题解列表 2021年03月05日 0 点赞 0 评论 603 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 循环处理 摘要:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[6]; int len; scanf("%s",str); …… 题解列表 2021年03月05日 0 点赞 0 评论 407 浏览 评分:0.0
1970: 巨大的数 摘要:解题思路:注意事项:while(n--&&scanf("%d",&num)) //利用短路功能,没有次数不会进行输入和循环参考代码:#include <stdio.h> int main(){ …… 题解列表 2021年03月05日 0 点赞 0 评论 787 浏览 评分:0.0
1955: 贷款计算 摘要:解题思路:注意事项:输出结果强转为 int 实现向下取整参考代码:#include <stdio.h> int main(){ int months; float total,rate,re…… 题解列表 2021年03月05日 0 点赞 0 评论 428 浏览 评分:0.0
2008: C++函数重载练习 摘要:解题思路:注意事项:三目加括号参考代码:#include <iostream> #include <string> #include <string.h> using namespace std…… 题解列表 2021年03月05日 0 点赞 0 评论 627 浏览 评分:0.0
1978: 分类计算。输出时用?:判断 摘要:解题思路:输出时用?:判断注意事项:参考代码:#include <stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); printf("%…… 题解列表 2021年03月05日 0 点赞 0 评论 581 浏览 评分:0.0
1988: 求总时间 摘要:解题思路:cost*=1.05注意事项:参考代码:#include <stdio.h> int main(){ float cost=30,sum=0; int layer; scanf…… 题解列表 2021年03月05日 0 点赞 0 评论 472 浏览 评分:0.0