1162: 密码(遍历) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int m,cnt = 0; string s, …… 题解列表 2024年09月01日 0 点赞 0 评论 241 浏览 评分:10.0
简单易懂(c语言代码) 摘要:```c #include #include int main() { int n; // 用于存储测试用例的数量 int sign[4]; // 用于标记密码中…… 题解列表 2024年09月01日 1 点赞 0 评论 577 浏览 评分:10.0
python--study||O.o 摘要:参考代码: def main(): n = int(input()) arr = [int(x) for x in input().split()] find = in…… 题解列表 2024年09月02日 0 点赞 0 评论 314 浏览 评分:10.0
python--study||O.o 摘要:参考代码: def main(): n = int(input()) t = dict() mx = -1 for i in range(n): &nb 题解列表 2024年09月02日 0 点赞 0 评论 359 浏览 评分:10.0
1163: 排队买票() 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int N = 11; long long a[N]; //计算卡特兰…… 题解列表 2024年09月02日 0 点赞 0 评论 315 浏览 评分:10.0
简单递归算法 摘要:解题思路:根据题目要求,大母牛每年生一头小母牛,小母牛在第四个年头开始生一头小母牛;观察题例,第二年是2头,第四年是4头,第五年为6头,说明第2年母牛才生的第一头小母牛,(用手指头算算是不是第二年到第…… 题解列表 2024年09月05日 2 点赞 0 评论 442 浏览 评分:10.0
python解题方式 摘要:解题思路:注意事项:参考代码:a = []while len(a) < 12: a.append(float(input()))b = sum(a)/12print('$%.2f'…… 题解列表 2024年09月05日 1 点赞 0 评论 721 浏览 评分:10.0
1159: 偶数求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m,s,k; k=0,s=0; while(~scanf("%d%d",&n,&m…… 题解列表 2024年09月08日 1 点赞 0 评论 428 浏览 评分:10.0
简单易懂有注释版本(c语言代码) 摘要:```c #include #include #define MAX 256 int fun(char *a) {// 检查字符串是否包含字符 '/' int len = 0…… 题解列表 2024年09月08日 0 点赞 0 评论 368 浏览 评分:10.0
看大神写的 摘要:解题思路:看一位大神写的,也是弥补了我对宏定义知识的欠缺,原来宏定义可以写成自定义函数的样子注意事项:参考代码:#include<stdio.h>#define change(a,b) t=b,b=a…… 题解列表 2024年09月11日 9 点赞 0 评论 1339 浏览 评分:10.0