编写题解 1395: 倒数第二 Python 摘要:解题思路:sort函数注意事项:很简单好吧,不需要注意参考代码:C=int(input())while C!=0: n=int(input()) if n>=2 and n<=10: …… 题解列表 2022年11月14日 0 点赞 9 评论 359 浏览 评分:8.4
Pell数列非递归模式 摘要:解题思路:参照斐波那契数列的通项公式 f[i] = f[i-1] + f[i-2]类似的只需要在f2上*2最后f3%32376即可。注意事项:循环里面的计数要从2开始!参考代码:#include i…… 题解列表 2022年11月22日 0 点赞 0 评论 436 浏览 评分:8.4
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define S(a,b,c) (a+b+c)/2#define AREA(a,b,c) sqrt(s…… 题解列表 2022年11月26日 0 点赞 0 评论 1096 浏览 评分:8.4
买笔问题C语言 摘要:解题思路:以4为基准求余,余1,2,3,利用开关语句switch来控制。若买完x/4支4元钱的笔还剩1元,则4元钱的笔少买1支,换成1支5元笔即可;若买完x/4支4元钱的笔还剩2元,则4元钱的笔少买1…… 题解列表 2022年12月11日 0 点赞 1 评论 842 浏览 评分:8.4
简短易懂的 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char a; while ((a = getchar()) != EOF) { if (a == …… 题解列表 2022年12月12日 0 点赞 0 评论 297 浏览 评分:8.4
交换值(超简单) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); printf("%d %d",b,…… 题解列表 2022年12月29日 0 点赞 1 评论 849 浏览 评分:8.4
编写题解 2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,x,i,count=0,t; scanf("%d",&n); fo…… 题解列表 2023年01月01日 0 点赞 1 评论 656 浏览 评分:8.4
A+B Problem(python) 摘要:解题思路:怎么同时输入多个数字 用map注意事项:参考代码: a,b=map(int,input().split())print(a+b)…… 题解列表 2023年01月04日 0 点赞 1 评论 995 浏览 评分:8.4
【Python题解】蓝桥杯2022年第十三届省赛真题-刷题统计 摘要:参考代码:a, b, n = map(int, input().split()) finish_week = 5 * a + 2 * b # 计算一周的完成题量 weeks = n // …… 题解列表 2023年01月09日 0 点赞 1 评论 641 浏览 评分:8.4
1094: 字符串的输入输出处理 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): print(input(),end='\n\n')while True: t…… 题解列表 2023年01月14日 0 点赞 0 评论 657 浏览 评分:8.4