题解列表
编写题解 2815: 求特殊自然数,python超简单
摘要:# 定义函数 decimal_to_base,用于将十进制数转换为指定基数的字符串表示
def decimal_to_base(n, base):
# 如果输入的数是0,则直接返回……
牛吃牧草(面相结果的编程)
摘要:解题思路:由题目已知,设1头牛一天吃x,牧草总数为T,牧草每天新增y 然后列出方程组:15*20x=T+20y
1273: ISBN码
摘要:解题思路:注意事项:参考代码:while True:
try:
s = input()
s1 = "".join(s.split('-')……
自定义函数求字符串反转
摘要:解题思路:双指针求字符串反转注意事项:参考代码:#include<stdio.h>#include<string.h>void reverse(char *arr);void reverse(char……
2873: 字符串p型编码
摘要:解题思路:注意事项:参考代码:s = input() + ' '
a = ""
b = 1
for i in range(len(s) - 1):
if s[i] ==……
前缀和+双指针优化(过100%)
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;
public class Main {
static final int N = 505;
……
蓝桥杯2023年第十四届省赛真题-飞机降落: C++, dfs
摘要:
```cpp
#pragma warning(disable:4996)
#include
using namespace std;
int T, n;
int t,……
java解法动态规划
摘要:import java.util.Scanner;
public class Main {
private static final int MOD = 1000000007;
……
小白随便写的,记录一下
摘要:```python
rmb = [100, 50, 10, 5, 2, 1]
def change_money(li):
new_li = [0 for i in range(len(r……