倒数第二 (C++代码)暴力一点的STL 摘要:解题思路: 有STL不用,那啥参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(false),cin.tie(0),co…… 题解列表 2018年12月09日 0 点赞 0 评论 753 浏览 评分:0.0
数列问题 (C语言代码) 摘要:解题思路运用数组解决问题注意事项:数组要足够大,因为此题最大到35 所以我稍微大一些,确保正确参考代码:#include<stdio.h>int main(){long long a[36];int …… 题解列表 2018年12月09日 0 点赞 0 评论 582 浏览 评分:0.0
数列问题 (C语言代码) 摘要:解题思路:运用暂时记忆 直接推到要算的第N项注意事项:注意变量变化过程中的递推关系,以及数的范围问题参考代码:include <stdio.h>int main(){ int N,a=3,b=…… 题解列表 2018年12月09日 0 点赞 0 评论 652 浏览 评分:0.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 评论 623 浏览 评分:0.0
C语言训练-求矩阵的两对角线上的元素之和 (C语言代码) 摘要:解题思路:注意事项:参考代码:int main(){ int N; scanf("%d",&N); &nb 题解列表 2018年12月09日 4 点赞 0 评论 1053 浏览 评分:0.0
神奇的fans (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; whi…… 题解列表 2018年12月09日 1 点赞 0 评论 683 浏览 评分:0.0
第几天 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n,y,r; int a[12]…… 题解列表 2018年12月09日 1 点赞 0 评论 1135 浏览 评分:0.0
筛排处理 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f(int a,int b) { return a<b; }…… 题解列表 2018年12月09日 0 点赞 0 评论 589 浏览 评分:0.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 评论 791 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int a; scanf("%d",&a); while(a>=90&&a<=100) { print…… 题解列表 2018年12月10日 0 点赞 0 评论 400 浏览 评分:0.0