只需添加一个用于计数的值 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define max 100 int main() { int n = 0, m = 0; int t =…… 题解列表 2022年10月11日 0 点赞 0 评论 666 浏览 评分:9.9
蓝桥杯基础练习VIP-报时助手 巨简单的代码 摘要:解题思路:先用一个数组存放0~24,然后再用一个数组存放20~50之间的整数,小时可以直接用第一个数组,分钟以24为限,具体看代码注意事项:参考代码:#include<stdio.h>int main…… 题解列表 2022年10月11日 0 点赞 0 评论 726 浏览 评分:9.5
1781-登陆验证问题(一)(代码简洁,思路清晰) 摘要:解题思路:注意事项:/*strcmp(s1,s2)1) s1,s2是字符数组2) s1==s2 =>0 s1>s2 =>1 s1<s2 =>-1 */参考代码:#include<iostr…… 题解列表 2022年10月11日 0 点赞 0 评论 675 浏览 评分:0.0
1671-小九九(代码简洁,思路清晰) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ for(int i=1;i<=9;i++) …… 题解列表 2022年10月11日 0 点赞 0 评论 568 浏览 评分:0.0
1156-阿姆斯特朗数(代码简洁,思路清晰) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int res,t; …… 题解列表 2022年10月11日 0 点赞 0 评论 568 浏览 评分:0.0
Sn的公式求和 摘要:解题思路: 循环+pow函数因为每个数的每一位上都是2,故联想到for循环取出每一个数将每一个数存在a中,利用for循环相加注意事项:参考代码:# include <stdio.h># includ…… 题解列表 2022年10月11日 0 点赞 0 评论 524 浏览 评分:0.0
简单点--字符提取 摘要:解题思路:简单思路,没有用自定义注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; gets(str); i…… 题解列表 2022年10月11日 0 点赞 0 评论 508 浏览 评分:9.9
自定义函数之字符类型统计 #include#includeusingnamespacestd;voidfun(chara[]){intnum=0,letter=0,space=0,other=0;for(inti=0;i='A'&&a[i]='a'&&a[i]='0'&&a[i] 题解列表 2022年10月11日 0 点赞 0 评论 533 浏览 评分:0.0
校门外的树 #includeusingnamespacestd;intmain(){intL,M,x,y,num=0;chara[10001]={0};//1代表种树,0代表没有树cin>>L>>M;for(inti=0;i>x>>y;for(inti=x;i 题解列表 2022年10月11日 0 点赞 0 评论 493 浏览 评分:9.9
蓝桥杯算法训练-出现次数最多的整数(Java) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main{ public static void main(String[] …… 题解列表 2022年10月11日 0 点赞 0 评论 719 浏览 评分:9.9