蓝桥杯算法提高VIP-前10名 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[200]={0}; int n,t; scanf("%d",&n); for(i=0;i<n…… 题解列表 2018年03月01日 1 点赞 1 评论 658 浏览 评分:0.0
蓝桥杯算法提高VIP-勾股数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c=0; for(a=3;a<=400;a++) for(b=a+1;b<=500;b++) …… 题解列表 2018年03月01日 1 点赞 0 评论 747 浏览 评分:0.0
蓝桥杯算法提高VIP-单词个数统计 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; gets(a); int cou…… 题解列表 2018年03月01日 1 点赞 0 评论 1009 浏览 评分:0.0
NINA-题解1099:校门外的树 (C语言代码) 摘要:解题思路:建立数组tree,全部赋值为0,表示有树;接下来每输入一组始末点,则将这范围内的tree置为1,表示没有树;完成后统计数组tree中为0的值的个数。注意事项:题目要求1<=L<=10000;…… 题解列表 2018年03月02日 0 点赞 0 评论 827 浏览 评分:0.0
NINA-题解1126:C语言训练-字符串正反连接 (C语言代码) 摘要:解题思路:逆序时,只用循环len/2次,然后头尾以此交换。注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char a…… 题解列表 2018年03月02日 0 点赞 0 评论 891 浏览 评分:0.0
C语言训练-排序问题<2> (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Comparator;import java.util.Scanner;public c…… 题解列表 2018年03月02日 0 点赞 0 评论 1010 浏览 评分:0.0
校门外的树 (C语言代码) 摘要:解题思路:用数组保存树的状态,初始为1,砍伐变0,最后累积还剩多少1即可。注意事项:参考代码:#include<stdio.h>int main() { int len_road, sum_area,…… 题解列表 2018年03月02日 1 点赞 0 评论 1090 浏览 评分:0.0
蓝桥杯基础练习VIP-完美的代价 (C语言代码)坑 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; char s[8001]; int ans,i,j,k,t,l,flag; scanf("%d\n…… 题解列表 2018年03月02日 0 点赞 0 评论 1341 浏览 评分:0.0
汽水瓶 (C语言代码) 摘要:解题思路:注意事项:每次剩余的瓶子是换的汽水数加上余下空瓶子参考代码:#include<stdio.h>int main() { int bottle; int water = 0; scanf("%…… 题解列表 2018年03月02日 0 点赞 0 评论 961 浏览 评分:0.0
NINA-题解1097:蛇行矩阵 (C语言代码) 超简单的方法 摘要:解题思路:每一行头两个数的差为i+2,i为行数(从0开始),然后差值逐渐+1;每行头一个数等于前一行头一个数+i;注意事项:每行末尾不要有多于空格参考代码:#include<stdio.h> #in…… 题解列表 2018年03月02日 0 点赞 0 评论 750 浏览 评分:0.0