蛇形填数 (C++代码) 摘要:解题思路: 参考代码:#include<bits/stdc++.h> using namespace std; int main() { int arr[103][103],…… 题解列表 2018年07月21日 0 点赞 0 评论 1236 浏览 评分:4.5
C语言程序设计教程(第三版)课后习题6.3 (C++代码) 摘要:解题思路:主要是位数上都是2,所以难倒了一波人,我们只需要乘10就可以了,请看:0*10+2=2,i++,2*10+2=22,i++,22*10+2=222......以此类推再相加就可以了。注意事项…… 题解列表 2018年07月20日 1 点赞 0 评论 778 浏览 评分:0.0
Hello, world! (C++代码) 摘要:解题思路:输入可以先放在数组里,最后一个个读出来。注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i=0; …… 题解列表 2018年07月20日 1 点赞 0 评论 1088 浏览 评分:2.0
取石子游戏 (C++代码) 摘要:解题思路: 威佐夫博弈,奇异局势先手必败,非奇异局势后手必败。参考代码:#include<bits/stdc++.h> using namespace std; int main…… 题解列表 2018年07月20日 5 点赞 1 评论 1755 浏览 评分:8.0
换硬币 (C++代码) 摘要:解题思路: 简单搜素。参考代码:#include<bits/stdc++.h> using namespace std; int total, num; void OPT(in…… 题解列表 2018年07月19日 0 点赞 0 评论 1233 浏览 评分:8.0
王牌花色 (C++代码) 摘要:解题思路: 不是最好的写法。参考代码:#include<bits/stdc++.h> #define Inf 0x3F3F3F3F using namespace std; c…… 题解列表 2018年07月19日 1 点赞 0 评论 743 浏览 评分:0.0
装包装箱问题 (C++代码) 摘要:解题思路: 先分析,在贪心。参考代码:#include<bits/stdc++.h> using namespace std; int datas[7]; bool ends(…… 题解列表 2018年07月19日 0 点赞 0 评论 1385 浏览 评分:9.9
数学的图表 (C++代码) 摘要:解题思路: 等差数列。参考代码:#include<bits/stdc++.h> using namespace std; int getline(int num) { int…… 题解列表 2018年07月19日 0 点赞 0 评论 1150 浏览 评分: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 评论 1151 浏览 评分:0.0
汽水瓶 (C++代码) 摘要:解题思路: 3个瓶盖=1瓶水 1瓶水=水+1个瓶盖即:2个瓶盖=水 注意事项:看清问题的本质,解决起来方便。不然一直考虑用瓶盖换来的水喝完后瓶盖该怎么兑换,这样下来会很麻烦的…… 题解列表 2018年07月18日 0 点赞 0 评论 667 浏览 评分:0.0