自定义函数之数字分离-c语言 摘要:解题思路:1.首先要输入一个四位数;2.在单独获得各个位上的数据,最后输出时用空格隔开即可注意事项:参考代码:#include<stdio.h>int main(){ int n; s…… 题解列表 2021年12月13日 0 点赞 0 评论 792 浏览 评分:0.0
字符串连接-C语言 摘要:解题思路:首先要输入两个字符串,这里用gets()函数可实现,scanf()函数更像是输入单个字符;输入字符串后要按顺序连接,则需要判断什么时候将第二个字符串连接至第一个字符串后面;这里用了for()…… 题解列表 2021年12月13日 0 点赞 0 评论 512 浏览 评分:0.0
1927: 蓝桥杯算法提高VIP-日期计算 新解法 摘要:解题思路:1、已经知道2011年11月11日是周五,那么可以先计算出任何一年11月11日是周几。2、分两种情况讨论:a 年份在2011年之后的,每增加一年,保存星期几的变量需要加1,如果是闰年需要再增…… 题解列表 2021年12月12日 0 点赞 0 评论 661 浏览 评分:8.0
1066: 二级C语言-自定义函数 摘要:直接使用pow()函数即可解决。#include<bits/stdc++.h> using namespace std; double fact(int &n){ double su…… 题解列表 2021年12月12日 0 点赞 0 评论 464 浏览 评分:0.0
蓝桥杯算法训练VIP-字符删除 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(){ char n[100]; char m[100]; ch…… 题解列表 2021年12月12日 0 点赞 0 评论 552 浏览 评分:0.0
最长字符串 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(){ char n[5][100]; int s=0; for(…… 题解列表 2021年12月12日 0 点赞 0 评论 417 浏览 评分:0.0
编写题解 1165: 明明的随机数(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<set> using namespace std; set<int> s…… 题解列表 2021年12月12日 0 点赞 0 评论 529 浏览 评分:9.9
编写题解 1159: 偶数求和(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,n=0…… 题解列表 2021年12月12日 0 点赞 0 评论 970 浏览 评分:0.0
使用队列思想解题(JAVA代码) 摘要:解题思路:* 思路: * * 整个字符串可以看成很多段无重复的字串重叠拼接而成 * 只要筛选出最长的字串就可以了 * 如:asdfgdfg 字串是:asdfg,fgd,gdf,dfg * *…… 题解列表 2021年12月12日 0 点赞 0 评论 540 浏览 评分:9.9
数列排序(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<vector> #include<cstdio> using namespace std; vector<…… 题解列表 2021年12月12日 0 点赞 0 评论 462 浏览 评分:0.0