蓝桥杯算法提高VIP-字符串比较 摘要:解题思路:比较注意事项:不是长度参考代码:#include <bits/stdc++.h>using namespace std;int main(){ios_base::sync_with_stdi…… 题解列表 2022年10月29日 0 点赞 0 评论 362 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:注意事项:参考代码:y,m,d = map(int,input().split())m1 = [1,3,5,7,8,10,12]m2 = [4,6,9,11]s = 0for i in ra…… 题解列表 2022年10月29日 0 点赞 1 评论 366 浏览 评分:9.9
使用pow函数求水仙花数 摘要:#include<stdio.h> #include<math.h> int main() { int ave, gae; int k1, k2, k3; scan…… 题解列表 2022年10月29日 0 点赞 0 评论 392 浏览 评分:9.9
【C】校门外的树合并重叠区间法 摘要:解题思路: 通过合并重叠区间方式计算,避免巨大数组注意事项: 总树木为长度+1 挖掘树数为初始点-末尾点+1设2个区间为a1~a2,b1~b2 判断重叠方法为b1<=a2 && b2>=a1参考代码:…… 题解列表 2022年10月29日 0 点赞 0 评论 485 浏览 评分:9.9
兰顿蚂蚁python代码,正确,小白水平可读懂 摘要:解题思路:注意事项:参考代码:#兰顿蚂蚁#输入m,n=map(int,input().split())l1=[]for i in range(m):#输入矩阵 l1.append(list(ma…… 题解列表 2022年10月29日 0 点赞 0 评论 298 浏览 评分:7.0
1012.字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char ch; int letter,number,blank,other; letter=number=b…… 题解列表 2022年10月29日 0 点赞 0 评论 297 浏览 评分:9.9
1093——字符逆序 摘要:参考代码:#include"stdio.h" #include"string.h" typedef char string[111]; string str; void fun(char *s…… 题解列表 2022年10月29日 0 点赞 0 评论 274 浏览 评分:0.0
暴力枚举法题解 摘要:解题思路: 本题解采用暴力解法,就是使用多层for循环来求公、母、雏鸡的个数。 原来的思路:使用3层for循环,来枚举这三种 题解列表 2022年10月29日 0 点赞 0 评论 453 浏览 评分:9.9
循环入门练习1(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int s=0; for(int i=…… 题解列表 2022年10月29日 0 点赞 0 评论 454 浏览 评分:9.9
统计数字字符个数用C++来实现 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string s; int…… 题解列表 2022年10月29日 0 点赞 0 评论 519 浏览 评分:9.9