[编程入门]成绩评定的三种方法 摘要:解题思路: 1. 先看题目,找出适合的方法,比如这的题目就和条件有关(分数和评级有关),因此可以使用if条件语句,if else嵌套,Switch语句来做此题. …… 题解列表 2022年04月01日 0 点赞 0 评论 627 浏览 评分:0.0
完全背包问题 摘要:解题思路: 这是优化后的代码通过滚动数组优化注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int dp[1000]; in…… 题解列表 2022年04月01日 0 点赞 0 评论 602 浏览 评分:0.0
普通易懂的解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){ int a[10], b = 0, c = 0; int* p = a; for (int i=0; i…… 题解列表 2022年04月01日 0 点赞 0 评论 475 浏览 评分:0.0
2620: 蓝桥杯2021年第十二届国赛真题-大写 摘要:解题思路:注意事项:参考代码:st=input() for i in st: if i.islower(): print(i.upper(),end=''…… 题解列表 2022年04月01日 0 点赞 0 评论 624 浏览 评分: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 评论 564 浏览 评分: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 评论 475 浏览 评分:0.0
[STL训练]sort练习-题解(各语言代码) 摘要:**python** ```python from heapq import nlargest print(*nlargest(int(input().split()[1]),map(int,i…… 题解列表 2022年04月01日 0 点赞 0 评论 573 浏览 评分: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 评论 446 浏览 评分: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 评论 462 浏览 评分:0.0
【鼠鼠】用getline和getchar两个函数ac一道简单题 摘要:1.首先阅读题目仔细点,输出是要空两行的 2.getline(cin,string)真的太好用辣,碰到换行和EOF才停的 3.getchar()用来作为输入空格的接收函数 ```…… 题解列表 2022年04月01日 0 点赞 0 评论 522 浏览 评分:0.0