C语言训练-自守数问题 (Java代码)(极简) 摘要:for(long a=0;a<200000;a++) { long it=a*a; String ia=""+it; String ib=""+a; String ic…… 题解列表 2018年08月30日 0 点赞 0 评论 1060 浏览 评分:9.9
蓝桥杯算法提高VIP-聪明的美食家 (C++代码)(最长不降序序列) 摘要:#include <iostream> #include <stdio.h> #include <map> #include <vector> using namespace std; in…… 题解列表 2018年08月29日 1 点赞 0 评论 1273 浏览 评分:0.0
玉龙学长买雪糕 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,x=0; scanf("%d",&n); int sum=0; for(int i=0;i<n;i+…… 题解列表 2018年08月29日 0 点赞 0 评论 713 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){ int m=1,n=2,t=0,N;…… 题解列表 2018年08月29日 0 点赞 0 评论 492 浏览 评分:0.0
基础训练数列排序 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i=0; int a[1000]; scanf("%d",&n); for(int q=0;q<n;…… 题解列表 2018年08月29日 0 点赞 0 评论 1185 浏览 评分:0.0
算法训练 Fibonacci数列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int FIB(int n);int main(){ int n; scanf("%d",&n); printf("%d",FIB(n)…… 题解列表 2018年08月29日 1 点赞 6 评论 927 浏览 评分:4.5
最小三个数 (C语言代码)交换排序法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i=0; int a[1000]; scanf("%d",&n); for(int q=0;q<n;…… 题解列表 2018年08月29日 0 点赞 0 评论 1171 浏览 评分:0.0
输出字符'A'个数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); for(int i=0;i<n;i++) { printf("A…… 题解列表 2018年08月29日 0 点赞 0 评论 1153 浏览 评分:9.3
与2无关的数 (C语言代码) 摘要:解题思路:这个题解可以算任意位数的数 是不是与2有关 从而求和。依次计算这个数各位数分别是多少,计算这个数的位数为y++,这个在判断是不是2之前++,如果是2.break。在break语句之后,c++…… 题解列表 2018年08月29日 0 点赞 0 评论 1384 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){ int a; scanf(…… 题解列表 2018年08月29日 2 点赞 0 评论 800 浏览 评分:0.0