说是考察搜索,其实更多是考字符串的操作,又是被难倒的一天 摘要:1.接收字符串 2.找到所有以c开头的字符串作为龙头 3。查找龙头可以拼接的所有单词 4.每个单词只能用两次。 import java.math.BigInteger; import…… 题解列表 2023年03月14日 0 点赞 0 评论 622 浏览 评分:9.9
python简单易懂解法 摘要:解题思路:可以在两个硬币之间想象出一个开关,控制它们的状态,如果硬币状态与目标不符,就按下开关,以此类推参考代码:start=list(str(input()))aim=list(str(input(…… 题解列表 2023年03月14日 0 点赞 0 评论 398 浏览 评分:9.9
笨小猴,第一次写解析 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char z[101]; scanf("%s",z);//输入一个字符串…… 题解列表 2023年03月14日 0 点赞 0 评论 352 浏览 评分:9.9
python编写信息学奥赛一本通T1308-高精除 摘要:n = int(input()) m = int(input()) b=n//m#注意要求为整数 a=n%m print(b) print(a)…… 题解列表 2023年03月14日 0 点赞 0 评论 915 浏览 评分:4.4
[编程入门]最大公约数与最小公倍数,递归 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int gcd(int m,int n){ if(m%n==0) return n…… 题解列表 2023年03月14日 0 点赞 0 评论 287 浏览 评分:0.0
2717: 蓝桥杯2022年第十三届决赛真题-左移右移 最清晰 摘要: import java.util.*; public class 左移右移二维 { public static void main(String[] args) { Scanner s…… 题解列表 2023年03月14日 1 点赞 8 评论 990 浏览 评分:9.4
蓝桥杯专题系列-1541(Python) 摘要:解题思路:内置math函数gcd()求最大公约数,但本题其实考察的是数的拆分注意事项:不要傻傻的用函数自己调用自己参考代码:Python暴力解法:import mathcnt = 0n = int(i…… 题解列表 2023年03月14日 0 点赞 0 评论 329 浏览 评分:0.0
出现次数超过一半的数 可AC 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>#include<stdlib.h>int main(){ int n,flag=0,a[100]=…… 题解列表 2023年03月14日 0 点赞 0 评论 366 浏览 评分:0.0
c++二维数组的转置(最简单方法) 摘要:解题思路:a[0][0] a[0][1] a[0][2] a[1][0] a[1][1] a[1][2] &nb 题解列表 2023年03月14日 0 点赞 1 评论 329 浏览 评分:8.0
1268: 第K极值 摘要:```cpp #include using namespace std; const int maxn=10001; int n,k,arr[maxn],ans; string is_pre…… 题解列表 2023年03月14日 0 点赞 0 评论 632 浏览 评分:9.9