排列(C语言代码)(第一次上传题解) 摘要:解题思路:用三重循环解决四个数字的全排列注意事项:题目中说的按从小到大是误导,不需要给数字排序参考代码:#include<stdio.h> int main() { int a[4]={…… 题解列表 2018年12月10日 12 点赞 0 评论 1389 浏览 评分:9.0
超级楼梯 (C++代码)重温一下记忆搜索 摘要:#include<bits/stdc++.h> using namespace std; int a[50]={0,1,1,2}; int dp[50]; int f(int n) { …… 题解列表 2018年12月09日 0 点赞 1 评论 986 浏览 评分:0.0
筛排处理 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f(int a,int b) { return a<b; }…… 题解列表 2018年12月09日 0 点赞 0 评论 762 浏览 评分:0.0
第几天 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n,y,r; int a[12]…… 题解列表 2018年12月09日 1 点赞 0 评论 1617 浏览 评分:0.0
神奇的fans (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; whi…… 题解列表 2018年12月09日 1 点赞 0 评论 892 浏览 评分:0.0
C语言训练-求矩阵的两对角线上的元素之和 (C语言代码) 摘要:解题思路:注意事项:参考代码:int main(){ int N; scanf("%d",&N); &nb 题解列表 2018年12月09日 4 点赞 0 评论 1230 浏览 评分:0.0
破解简单密码 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { string a; while(cin>…… 题解列表 2018年12月09日 0 点赞 0 评论 1674 浏览 评分:6.0
【亲和数】 (C语言代码) 摘要:解题思路:注意事项:注意sum1和sum2每次循环归零 参考代码:#include<stdio.h>int main(){ int n=0,a=0,b=0,sum1=0,sum2=0,i=0,k=0;…… 题解列表 2018年12月09日 0 点赞 0 评论 800 浏览 评分:0.0
C语言训练-新手while循环+if判定(C语言代码) 摘要:解题思路:注意事项:参考代码:int main(){ int num,t; scanf("%d",&num); while(num!=1) { if(num%2=…… 题解列表 2018年12月09日 7 点赞 1 评论 636 浏览 评分:2.0
C语言训练-计算1~N之间所有奇数之和 (C语言代码) 摘要:解题思路:一重循环从i到N,判定是否是奇数,如果是相加,最后输出和注意事项:参考代码:int main(){ int N,i,sum=0; scanf("%d",&N); …… 题解列表 2018年12月09日 5 点赞 0 评论 1361 浏览 评分:8.8