1927: 蓝桥杯算法提高VIP-日期计算 新解法 摘要:解题思路:1、已经知道2011年11月11日是周五,那么可以先计算出任何一年11月11日是周几。2、分两种情况讨论:a 年份在2011年之后的,每增加一年,保存星期几的变量需要加1,如果是闰年需要再增…… 题解列表 2021年12月12日 0 点赞 0 评论 416 浏览 评分:8.0
1066: 二级C语言-自定义函数 摘要:直接使用pow()函数即可解决。#include<bits/stdc++.h> using namespace std; double fact(int &n){ double su…… 题解列表 2021年12月12日 0 点赞 0 评论 222 浏览 评分:0.0
蓝桥杯算法训练VIP-字符删除 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(){ char n[100]; char m[100]; ch…… 题解列表 2021年12月12日 0 点赞 0 评论 342 浏览 评分:0.0
最长字符串 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(){ char n[5][100]; int s=0; for(…… 题解列表 2021年12月12日 0 点赞 0 评论 199 浏览 评分:0.0
编写题解 1165: 明明的随机数(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<set> using namespace std; set<int> s…… 题解列表 2021年12月12日 0 点赞 0 评论 296 浏览 评分:9.9
编写题解 1159: 偶数求和(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,n=0…… 题解列表 2021年12月12日 0 点赞 0 评论 646 浏览 评分:0.0
使用队列思想解题(JAVA代码) 摘要:解题思路:* 思路: * * 整个字符串可以看成很多段无重复的字串重叠拼接而成 * 只要筛选出最长的字串就可以了 * 如:asdfgdfg 字串是:asdfg,fgd,gdf,dfg * *…… 题解列表 2021年12月12日 0 点赞 0 评论 294 浏览 评分:9.9
数列排序(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<vector> #include<cstdio> using namespace std; vector<…… 题解列表 2021年12月12日 0 点赞 0 评论 288 浏览 评分:0.0
理解怎样在判断时只输出一次 摘要:解题思路:因为数组是已排列好的,所以只需要找出需要插入的位置,通过循环比较找出位置,在循环中判段循环注意只输出一次。即可注意事项:参考代码:#include<stdio.h>int main(){in…… 题解列表 2021年12月12日 0 点赞 0 评论 230 浏览 评分:9.9
1071: 二级C语言-阶乘公式求值 摘要:注意 fact 函数的返回值类型是 double。(不是 double 的话 100 的测试值无法通过)#include<bits/stdc++.h> using namespace std; …… 题解列表 2021年12月12日 0 点赞 0 评论 218 浏览 评分:0.0