2620: 蓝桥杯2021年第十二届国赛真题-大写 摘要:解题思路:注意事项:参考代码:st=input() for i in st: if i.islower(): print(i.upper(),end=''…… 题解列表 2022年04月01日 0 点赞 0 评论 510 浏览 评分:0.0
等差数列的求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int sum=0; for(int i=1;i<=n;i++){…… 题解列表 2022年04月01日 0 点赞 0 评论 451 浏览 评分:0.0
1983: 蓝桥杯算法提高VIP-求指数 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split()) for i in range(1,m+1): print('%12d'%(n**i)…… 题解列表 2022年04月01日 0 点赞 0 评论 384 浏览 评分:0.0
[STL训练]sort练习-题解(各语言代码) 摘要:**python** ```python from heapq import nlargest print(*nlargest(int(input().split()[1]),map(int,i…… 题解列表 2022年04月01日 0 点赞 0 评论 475 浏览 评分:0.0
C语言训练-邮票组合问题*(python版) 摘要:解题思路:注意事项:参考代码:a = [0,3,6,9,12]#将4张3分的所有情况列出b = [0,5,10,15]#将3张5分的所有情况列出c = []s = 0for i in range(0,…… 题解列表 2022年04月01日 0 点赞 0 评论 360 浏览 评分:0.0
二级C语言-公约公倍 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int gcd(int x,int y){ int t; t = x%y…… 题解列表 2022年04月01日 0 点赞 0 评论 366 浏览 评分:0.0
【鼠鼠】用getline和getchar两个函数ac一道简单题 摘要:1.首先阅读题目仔细点,输出是要空两行的 2.getline(cin,string)真的太好用辣,碰到换行和EOF才停的 3.getchar()用来作为输入空格的接收函数 ```…… 题解列表 2022年04月01日 0 点赞 0 评论 411 浏览 评分:0.0
【鼠鼠】用两层循环ac一道中等题 摘要:1.核心思路贪心,最少步数的办法是找到相同的字符,通过删除和修改达到一致 2.比如sfdxbqw 和 gfdgw,只要把一样的留下,不一样的在第二字符串个长度之前就改,在第二个字符串之后出现的不…… 题解列表 2022年04月01日 0 点赞 0 评论 402 浏览 评分:0.0
一种很笨的方法——1560: 蓝桥杯算法提高VIP-计算器 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int g[10][10], n, sum;char a[110], b[110];int m…… 题解列表 2022年04月01日 0 点赞 0 评论 321 浏览 评分:0.0
使用函数和宏定义简单找出最大数(冒泡排序) 摘要:解题思路:使用函数找出最大值,我想到的是有点繁琐的“冒泡排序”。 宏定义我是采用定义两个宏,一个是最大值为a,一个最大值为b,那么剩下就是c(使用if ... i…… 题解列表 2022年04月02日 0 点赞 0 评论 423 浏览 评分:0.0