SARS病毒C++非常简单 摘要:**直接上到码嗨嗨嗨**```cpp#include #include using namespace std;const long long MOD = 1000000007…… 题解列表 2025年02月23日 0 点赞 0 评论 123 浏览 评分:0.0
很容易理解的一种做法 摘要:解题思路:注意事项:注意“==”和“=”参考代码:a,b = map(int,input().split())if a >= 60: a = 1else: …… 题解列表 2025年02月23日 0 点赞 0 评论 174 浏览 评分:0.0
题解 1434: 蓝桥杯历届试题-回文数字(最简单易懂) 摘要:解题思路:将数字转换为字符串,顺序和逆序遍历字符串的每一位判断是否相等,若每一位都相等则为回文数。并使用found标记有没有找到满足条件的数字参考代码:x=int(input(…… 题解列表 2025年02月23日 3 点赞 0 评论 393 浏览 评分:0.0
奇数个数-简简单单,一个while循环搞定 摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(){ intn,a=0; scanf("%d",…… 题解列表 2025年02月22日 0 点赞 0 评论 191 浏览 评分:0.0
简单讲讲自己的思路 摘要:def a(n): #当年份小于等于4时,那就只有刚开始的那头母牛在生崽,所以直接输出数量即可 if n <= 4: …… 题解列表 2025年02月22日 4 点赞 0 评论 1094 浏览 评分:6.0
递推公式位数问题 摘要:```cpp#include using namespace std;int main() { int n; cin >>n; const i…… 题解列表 2025年02月22日 0 点赞 0 评论 398 浏览 评分:0.0
数位排序简单写法:sorted函数 摘要:解题思路:int(i)for i in str(num):生成器表达式,用于将数字整体分开,看成其组成部分;1.str(num)用于将数字变为字符串,使其不再具有数字的意义,如123变为”123“。2…… 题解列表 2025年02月22日 4 点赞 0 评论 408 浏览 评分:0.0
统计字符个数-总个数为10 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>intmain(){&n…… 题解列表 2025年02月22日 0 点赞 0 评论 254 浏览 评分:0.0
回文判断-for循环 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>intmain(){ chara[1…… 题解列表 2025年02月22日 1 点赞 0 评论 243 浏览 评分:0.0
易懂-数组输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>intmain(){&nbs…… 题解列表 2025年02月22日 0 点赞 0 评论 191 浏览 评分:0.0