BREEZE------之这一篇没有小技巧(用的C) 摘要:#include<stdio.h>int main(){ int x; scanf("%d",&x); if(x<3) printf("%d",2*x); else if(x>=20) prin…… 题解列表 2019年02月21日 0 点赞 0 评论 1450 浏览 评分:9.9
。。提点小问题。。:蓝桥杯算法提高VIP-字符串比较 (C语言代码) 摘要:解题思路:用strcmp字符串比较函数来比较。不能用gets输入,要用%s来输入。因为两个字符串之间是空格隔开的。#include<stdio.h> #include<string.h> int…… 题解列表 2019年02月21日 1 点赞 0 评论 979 浏览 评分:9.0
C语言程序设计教程(第三版)课后习题8.8 (C语言代码) 摘要:解题思路:注意事项:参考代码#include<stdio.h>int main(){ char c[4]; int i; scanf("%s",c); for(i=0;i<4;i++) printf(…… 题解列表 2019年02月21日 1 点赞 0 评论 1152 浏览 评分:0.0
【出圈】 (C++代码) 摘要:解题思路:其实就是利用公式法的思路,不断循环需要数的数,数到的就删去,利用数组赋值删去注意事项:注意变量的初始化;参考代码:#include<bits/stdc++.h> using namespa…… 题解列表 2019年02月21日 1 点赞 0 评论 783 浏览 评分:0.0
画三角形 (C语言代码) 摘要:解题思路:找规律 第i行前就有第n-i个空格 有i个三角形注意事项:打出"\"的时候 由于这个也是转义字符 所以要用两个\\才能打出 (有点类似用printf输出%)参考代码:#include <st…… 题解列表 2019年02月21日 0 点赞 0 评论 1012 浏览 评分:0.0
汽水瓶 (C语言代码) 摘要:解题思路:构造一个函数,输入处理空瓶数,返回能喝多少瓶参考代码:#include <stdio.h>int chuli(int n){ int shang=0, yu=0; …… 题解列表 2019年02月21日 0 点赞 0 评论 689 浏览 评分:0.0
蓝桥杯算法提高VIP-林丹大战李宗伟 (C语言代码) 摘要:解题思路:注意事项:注意清空缓冲区就行了参考代码:#include <stdio.h>int main(){ int a = 0, t = 0; char x; while (x = getchar(…… 题解列表 2019年02月21日 0 点赞 0 评论 1104 浏览 评分:0.0
蓝桥杯算法提高VIP-质数的后代 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i, j, n, x, a; scanf("%d", &n); for (i = 1; i <= n;…… 题解列表 2019年02月21日 0 点赞 1 评论 1459 浏览 评分:8.0
字符串中间和后边*号删除 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fun(char *a);int main(){ char s[81]; gets(s); fun(s); …… 题解列表 2019年02月21日 0 点赞 0 评论 655 浏览 评分:0.0
DNA (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main3 { public static void main(String[] args) …… 题解列表 2019年02月21日 0 点赞 0 评论 953 浏览 评分:0.0