编写题解 1118: Tom数 摘要:解题思路:注意事项:参考代码:while True: try: print(sum(list(map(int, input())))) except: …… 题解列表 2024年04月10日 0 点赞 0 评论 349 浏览 评分:0.0
1475: 蓝桥杯基础练习VIP-高精度加法 摘要:解题思路:注意事项:参考代码:a = int(input()) b = int(input()) print(a + b)…… 题解列表 2024年04月10日 0 点赞 0 评论 367 浏览 评分:0.0
1474: 蓝桥杯基础练习VIP-阶乘计算 摘要:解题思路:注意事项:参考代码:n = int(input()) s = 1 for i in range(2, n + 1): s *= i print(s)…… 题解列表 2024年04月10日 0 点赞 0 评论 366 浏览 评分:0.0
1895: 蓝桥杯算法提高VIP-队列操作 摘要:解题思路:注意事项:参考代码:N = int(input()) queue = [] lenght = len(queue) for i in range(N): x = input(…… 题解列表 2024年04月10日 0 点赞 0 评论 355 浏览 评分:0.0
1003: [编程入门]密码破译 摘要:解题思路:注意事项:参考代码:str = input().lower() s = "" for i in str: if i == 'w': s += …… 题解列表 2024年04月10日 2 点赞 0 评论 758 浏览 评分:0.0
点和正方形的关系 摘要:# include <bits/stdc++.h> using namespace std; int main () { int x,y; cin >> x >> y; …… 题解列表 2024年04月10日 1 点赞 0 评论 249 浏览 评分:0.0
C++ 地宫取宝 DP 摘要:解题思路:看了一眼数据这么小想到可以利用DP解决 想出dp表达式idp[i][j][t][c];//坐标为 i j 最大价值为t 身上宝物为c时候的状态数量 分两种情况转移 1.没选当前格子的 2.能…… 题解列表 2024年04月10日 0 点赞 0 评论 341 浏览 评分:0.0
等差数列求和(求和公式) 摘要:解题思路:活用数学中数列的概念以及性质。注意事项:An=a1+(n-1)d//n正好为用户输入Sn=[a1+x(末尾)]*n/2参考代码://等差数列求和 #include <stdio.h>int …… 题解列表 2024年04月10日 0 点赞 0 评论 216 浏览 评分:0.0
宏定义之闰年判断(c语言详解哦) 摘要:解题思路:定义一个#define LEAP_YEAR(n),用里面的表达式的结果来判断是否是闰年首先知道闺年的条件:(1)四年一闰百年不闰:即如果year能够被4整除,但是不能被100整除,则year…… 题解列表 2024年04月10日 0 点赞 0 评论 248 浏览 评分:0.0
1112:一元二次方程 摘要: # include <bits/stdc++.h> using namespace std; int main () { int a,b,c; cin >>a >>b >>…… 题解列表 2024年04月10日 0 点赞 0 评论 181 浏览 评分:0.0