编写题解 1141: C语言训练-百钱百鸡问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ for(int i=0;i<100;i++){ f…… 题解列表 2022年03月26日 0 点赞 0 评论 476 浏览 评分:0.0
不好意思,直接输出了 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<"95959"<<endl; return 0…… 题解列表 2022年03月26日 0 点赞 0 评论 434 浏览 评分:0.0
编写题解 1126: C语言训练-字符串正反连接 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string str; cin>>str; cout…… 题解列表 2022年03月26日 0 点赞 0 评论 491 浏览 评分:0.0
编写题解 1051: [编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;struct student{ string id; string name; …… 题解列表 2022年03月26日 0 点赞 0 评论 469 浏览 评分:0.0
抢夺资源 经典巴什博弈 摘要:典型巴什博弈问题 **如果n=m+1,不管先手取多少,都是后手赢** 由此可以得到启发,**只要给对手留下(m+1)的倍数,就能赢** ```cpp #include using names…… 题解列表 2022年03月26日 1 点赞 0 评论 501 浏览 评分:9.9
(C++代码) 简单的字符串-题解 递归函数解法 摘要:#include<iostream> #include<string> #include<string.h> using namespace std; int Count;//记录相同的项的个…… 题解列表 2022年03月26日 0 点赞 0 评论 513 浏览 评分:0.0
记忆化搜索-取球博弈 摘要:dfs搜索每种可能走法,vis数组存出现过的场面防止重复递归 存在对手输则自己赢,不存在则查看是否可能出现平局,若两者情况都没有就必败 注意每次递归交换操作对象 ```cpp #include…… 题解列表 2022年03月26日 0 点赞 0 评论 839 浏览 评分:8.0
C++代码简便 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int H = 0, M = 0, S = 0; int t; c…… 题解列表 2022年03月26日 0 点赞 0 评论 291 浏览 评分:0.0
1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:kan注意事项: int nNum1 = m ;//中间变量:保存m int nNum2 = n ;//中间变量:保存n参考代码:int t = 1 ;//取余计算的余数,赋值为1是为…… 题解列表 2022年03月26日 0 点赞 0 评论 461 浏览 评分:9.9
24行 63ms 蓝桥杯算法提高VIP-身份证排序 摘要:解题思路:一看数量较大就毫不犹豫选择sort.注意事项:不要用二维数组,不好写sort的比较函数参考代码:#include<stdio.h>#include<string.h>#include<alg…… 题解列表 2022年03月26日 0 点赞 0 评论 630 浏览 评分:9.2