2037: 字符串比较,C语言HashMap的实现 摘要:解题思路:计算字符串的哈希值函数拉链法解决哈希冲突注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <string.h> …… 题解列表 2021年07月26日 0 点赞 0 评论 753 浏览 评分:9.9
母牛的故事 摘要:解题思路:注意事项:参考代码:n=eval(input())m=[]while n: a,b,c=2,3,4 if 0<n<55: if n<5: m.…… 题解列表 2021年07月26日 0 点赞 0 评论 464 浏览 评分:6.0
Tom数qqqqqqqqqq 摘要:解题思路:注意事项:第一次直接拿整数int去接收输入的发现不行,之后才发现是接收2^32,而int是-2^31到2^31-1;所以输入的应该为字符串参考代码:import java.util.Scan…… 题解列表 2021年07月26日 0 点赞 0 评论 213 浏览 评分:0.0
论作弊狂魔怎样解出1000 摘要:解题思路:我们可以直接点运行,啥都不用干。注意事项:无参考代码:#include<stdio.h>int main(){ int a,b; while(~scanf("%d%d", &a,…… 题解列表 2021年07月26日 0 点赞 4 评论 663 浏览 评分:8.7
1004: [递归]母牛的故事 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,r,a[100],num=0; int co…… 题解列表 2021年07月25日 0 点赞 0 评论 595 浏览 评分:0.0
选择排序(C语言) 摘要:解题思路:比较10个数的大小,第一次循环时,假设数组的第1个数是最小的数,然后用一个for循环,将后面的9个数与第1个数进行比较,然后用min保存最小数字的数组下标,然后设置一个temp变量,用于交换…… 题解列表 2021年07月25日 0 点赞 0 评论 796 浏览 评分:9.9
弟弟的作业---------------------------------------- 摘要:解题思路:注意事项:参考代码:#include "stdio.h"int main() { int a, b; char A, B[10]; int k = 0; while (scanf("%d%c…… 题解列表 2021年07月25日 0 点赞 0 评论 291 浏览 评分:8.0
【入门级C语言】合并两个链表并排序输出 摘要:解题思路: 直接创建两个不带有哨兵结点的链表保存数据,连接后对结点进行冒泡排序,最后输出排序好的链表,思路非常直接。注意事项: 因为没有哨兵结点,我做的时候没有考虑…… 题解列表 2021年07月25日 0 点赞 0 评论 786 浏览 评分:9.0
超详细算法实现(Java代码) 摘要:解题思路:拥有基本的快速类思想注意事项:注意大数类的使用方法参考代码: public static void main(String[] args) { Scanner scanner =…… 题解列表 2021年07月25日 0 点赞 0 评论 308 浏览 评分:0.0
函数调用不用if解决三个数的最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ return a > b? a:b; }int main(){ int a,b,…… 题解列表 2021年07月25日 0 点赞 0 评论 515 浏览 评分:0.0