我但凡是用一个数据结构一个算法都对不起这道暴力题 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { boolean flag1 = false; …… 题解列表 2022年03月15日 0 点赞 0 评论 449 浏览 评分:9.9
2267: 蓝桥杯2016年第七届真题-取球博弈(3.15) 摘要:解题思路:方法:记忆化递归注意事项:这居然是简单题,我真是无语了,被摁在地上摩擦,刚开始想了半天怎么转尼姆博弈,最后还是放弃了,参考了网上的其它语言代码写了python版和详细注释参考代码:def p…… 题解列表 2022年03月15日 0 点赞 0 评论 988 浏览 评分:9.9
计算2^n(C语言) 摘要:解题思路: 引用<math.h>头文件,运用pow(x,y);函数注意事项:pow(x,y);两数之间用英文逗号隔开后者为指数。参考代码:#include <stdio.h> #include <…… 题解列表 2022年03月15日 0 点赞 0 评论 513 浏览 评分:9.9
子串分值复杂解法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<string>using namespace std;int leftbound[100000];int …… 题解列表 2022年03月15日 0 点赞 0 评论 1062 浏览 评分:9.9
1507: 蓝桥杯算法提高VIP-去注释 摘要:```cpp #include using namespace std; int main() { char c; while ((c = cin.get()) != EOF)//(c…… 题解列表 2022年03月15日 0 点赞 0 评论 491 浏览 评分:9.9
1446: 蓝桥杯2013年第四届真题-核桃的数量 摘要:解题思路:注意事项:参考代码:a, b, c = map(int, input().split()) i = 0 while True: i += 1 su = max(a, …… 题解列表 2022年03月16日 0 点赞 0 评论 310 浏览 评分:9.9
编写题解 2072: [STL训练]寻梦 摘要:解题思路:注意事项:参考代码:n=int(input()) for i in range(n): strg_1=input() strg_2=input().strip() …… 题解列表 2022年03月16日 0 点赞 0 评论 476 浏览 评分:9.9
[编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:三个函数注意事项:参考代码:#include<stdio.h>int gongyueshu(int f,int g){ int l,o; while(f%g!=0) { …… 题解列表 2022年03月16日 0 点赞 0 评论 488 浏览 评分:9.9
HashMap的应用 摘要:解题思路:利用hashmap键值对 ,判断键是否存在对应的字符 ,不存在则初始化,值为1,表示第一次出现;存在的话值加一;最后遍历输出。注意事项: map.containsKey()判断键是否存在;…… 题解列表 2022年03月16日 0 点赞 0 评论 487 浏览 评分:9.9
编写题解 2074: [STL训练]A+B 摘要:解题思路:注意事项:参考代码:while True: try: a,b=map(str,input().split()) print(int(a.repl…… 题解列表 2022年03月16日 0 点赞 0 评论 563 浏览 评分:9.9