二级C语言-统计字符-题解(Java代码) 摘要:import java.util.Scanner;public class Main{ public static void main(String[] args) { int shuzi=0;//…… 题解列表 2020年08月07日 0 点赞 0 评论 323 浏览 评分:0.0
蓝桥杯2015年第六届真题-奇怪的数列-题解(C++代码) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int main() { char s[101],k[101],*q,b; //s当前串 …… 题解列表 2020年08月07日 0 点赞 0 评论 440 浏览 评分:9.9
蓝桥杯2015年第六届真题-切开字符串-题解(C语言代码) 摘要:1.正回文子串:奇数,且回文数;2.非正回文子串:偶数的回文子串,或 不是回文子串;3.整体把握:在for循环的状态下,首先将字符串s利用substr()分割两个子字符串a,b;a作为前串需求解其正回…… 题解列表 2020年08月07日 0 点赞 0 评论 1570 浏览 评分:9.9
[编程入门]字符串分类统计-题解(C语言代码) 摘要:解题思路:注意事项:注意将四个变量赋初值参考代码:#include <stdio.h>int main() { int a=0,b=0,c=0,d=0; char ch; while((ch=getc…… 题解列表 2020年08月07日 0 点赞 1 评论 1050 浏览 评分:9.9
[编程入门]最大公约数与最小公倍数-简单解法(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int i,a,b,t; scanf("%d%d",&a,&b); if(a<b) …… 题解列表 2020年08月07日 0 点赞 0 评论 686 浏览 评分:9.9
[编程入门]宏定义练习之三角形面积-题解(C语言代码)很详细,很简单,不看绝对后悔! 摘要:解题思路:首先,我们由题目得知三角形面积=SQRT(S*(S-a)*(S-b)*(S-c)) 其中S=(a+b+c)/2,a、b、c为三角形的三边。注意事项:要用平方根,所以我们要用#include<…… 题解列表 2020年08月07日 0 点赞 3 评论 731 浏览 评分:6.7
[编程入门]利润计算-题解(C语言代码) 摘要:解题思路:没啥思路,一时兴起,此代码纯属恶搞,可以用,但实际意义不大;注意事项:参考代码:#include <stdio.h>int main(){ int n,m; scanf("%d",&n); …… 题解列表 2020年08月07日 0 点赞 0 评论 520 浏览 评分:0.0
字符串排序-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<cstdio> #include<vector> #include<algorithm> #include<string> #include<i…… 题解列表 2020年08月07日 0 点赞 0 评论 572 浏览 评分:0.0
蓝桥杯基础练习VIP-时间转换-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#include <string.h>int main (){ int h,m,s; int t; …… 题解列表 2020年08月07日 0 点赞 0 评论 316 浏览 评分:0.0
字符串的输入输出处理-题解(C++代码) 摘要:解题思路: gets()函数: scanf("%s", str);输入进字符数组中,直到回车结束&nbs 题解列表 2020年08月07日 0 点赞 0 评论 473 浏览 评分:0.0