Hello, world! (C++代码) 摘要:解题思路:输入可以先放在数组里,最后一个个读出来。注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i=0; …… 题解列表 2018年07月20日 1 点赞 0 评论 1052 浏览 评分:2.0
取石子游戏 (C++代码) 摘要:解题思路: 威佐夫博弈,奇异局势先手必败,非奇异局势后手必败。参考代码:#include<bits/stdc++.h> using namespace std; int main…… 题解列表 2018年07月20日 5 点赞 1 评论 1639 浏览 评分:8.0
换硬币 (C++代码) 摘要:解题思路: 简单搜素。参考代码:#include<bits/stdc++.h> using namespace std; int total, num; void OPT(in…… 题解列表 2018年07月19日 0 点赞 0 评论 1164 浏览 评分:8.0
王牌花色 (C++代码) 摘要:解题思路: 不是最好的写法。参考代码:#include<bits/stdc++.h> #define Inf 0x3F3F3F3F using namespace std; c…… 题解列表 2018年07月19日 1 点赞 0 评论 701 浏览 评分:0.0
装包装箱问题 (C++代码) 摘要:解题思路: 先分析,在贪心。参考代码:#include<bits/stdc++.h> using namespace std; int datas[7]; bool ends(…… 题解列表 2018年07月19日 0 点赞 0 评论 1218 浏览 评分:9.9
数学的图表 (C++代码) 摘要:解题思路: 等差数列。参考代码:#include<bits/stdc++.h> using namespace std; int getline(int num) { int…… 题解列表 2018年07月19日 0 点赞 0 评论 967 浏览 评分:0.0
You are my brother (C++代码) 摘要:解题思路: 参考代码:#include<bits/stdc++.h> using namespace std; int tree[2021], num; void init()…… 题解列表 2018年07月19日 0 点赞 0 评论 986 浏览 评分:0.0
汽水瓶 (C++代码) 摘要:解题思路: 3个瓶盖=1瓶水 1瓶水=水+1个瓶盖即:2个瓶盖=水 注意事项:看清问题的本质,解决起来方便。不然一直考虑用瓶盖换来的水喝完后瓶盖该怎么兑换,这样下来会很麻烦的…… 题解列表 2018年07月18日 0 点赞 0 评论 623 浏览 评分:0.0
蓝桥杯算法提高VIP-找素数 (C++代码) 摘要:解题思路: 请看 1790。参考代码:#include<bits/stdc++.h> using namespace std; typedef long long LL; bo…… 题解列表 2018年07月18日 0 点赞 0 评论 1508 浏览 评分:2.5
数据结构-有序线性表的有序合并 (C++代码) 摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int merging[201], arrst[10…… 题解列表 2018年07月18日 0 点赞 0 评论 966 浏览 评分:0.0