1077: Biggest Number 做不出来的同志直接把代码抄上吧```cpp#include#includeusingnamespacestd;shortrow,col,vis[20][20],ans[100],ansl,v[100],stack[100][2],used1[20][20], 题解列表 2022年08月23日 1 点赞 1 评论 914 浏览 评分:9.9
1078: Repairing a Road ```cpp#include#include#include#include#includeusingnamespacestd;constintMAXN=110,MAXE=1010;constdoubleEPS=1e-6;inlineintsgn(doublex){if(fabs(x)0?1:-1;} 题解列表 2022年08月23日 0 点赞 0 评论 1113 浏览 评分:9.9
题目 1041: [编程入门]宏定义之找最大数 ```cpp#include#include#includeusingnamespacestd;intmain(){doublea,b,c;cin>>a>>b>>c;printf("%.3lf\n",max(a,max(b,c)));printf("%.3lf", 题解列表 2022年08月23日 0 点赞 1 评论 451 浏览 评分:9.9
题目 1047: [编程入门]报数问题 #STL大法好```cpp#include#includeusingnamespacestd;intn,m=3,k=0,t=0;intmain(){dequeq;cin>>n;for(inti=1;i 题解列表 2022年08月23日 0 点赞 3 评论 500 浏览 评分:9.9
2066: [STL训练]第36届ACM亚洲区大连站网络赛The kth great number(注意人数不足k个的时候怎么处理) 摘要:解题思路:注意事项:注意不满k个的时候,输出最大的参考代码:#include<iostream>#include<set>using namespace std;int main(void){ int…… 题解列表 2022年08月23日 0 点赞 0 评论 612 浏览 评分:9.9
题解 1123: C语言训练-列出最简真分数序列(C——简单) 题目:按递增顺序依次列出所有分母为40,分子小于40的最简分数。输出示例:1/40,3/40,7/40,9/40,11/40,13/40,17/40,19/40,21/40,23/40,27/40,29/40,31/40,33/40,37/40,39/40,解题思路:最简分数即分子不能再与40约分, 题解列表 2022年08月24日 0 点赞 1 评论 699 浏览 评分:9.9
[编程入门]水仙花数判断(简单C语言) 解题思路:水仙花数只能是三位数,所以先分别求出百位,十位,个位三个数字,再分别求出它们的立方,最后相加和原数字相比较就行,利用for循环从100到1000逐个检查即可注意事项:三个数字的立方和可能会很大,所以可能要用double类型的数字储存它参考代码:#include#includ 题解列表 2022年08月24日 0 点赞 0 评论 679 浏览 评分:9.9
斐波纳契数列解析 摘要:解题思路:数学家斐波纳契在一次兔灾后发现了斐波纳契数列,列举如下:1 1 2 3 5 8 13 21 34 55 89 144...... 细看有规律,比如:1+1=2、1+2=3、2+3=5、3+5…… 题解列表 2022年08月24日 0 点赞 0 评论 557 浏览 评分:9.9
1079: 射击游戏 ```cpp#include#include#includeusingnamespacestd;intn;doubledp[7][7][7][7][7][7];doubledfs(int*h){if(dp[h[0]][h[1]][h[2]][h[3]][h[4]][h[5]]!=-1)returndp 题解列表 2022年08月24日 0 点赞 0 评论 1430 浏览 评分:9.9
1080: 战场的数目 ```cpp#include#includeusingnamespacestd;typedeflonglongLL;constLLmod=987654321;LLA[1][2],B[2][2],T[1][2],ans[2][2];voidinit(){B[0][0]=3;B[0][1]=T[0][1] 题解列表 2022年08月24日 0 点赞 0 评论 1135 浏览 评分:9.9