优质题解 2664: 蓝桥杯2022年第十三届省赛真题-求和 摘要:解题思路:我们观察式子可以发现,可以把每一个数提出来,以a1到a5为例S=a1*(a2+a3+a4+a5)+a2*(a3+a4+a5)+a3*(a4+a5)+a4*a5这样很容易想到前缀和,我们可以通…… 题解列表 2022年04月24日 0 点赞 8 评论 7027 浏览 评分:9.6
简单又暴力 摘要:解题思路:逐层思考思考,简单暴力。注意事项:注意开始的位置。参考代码:#include<stdio.h>int main(void){ int m,n,a,b; scanf("%d%d",&m,&n)…… 题解列表 2022年04月24日 0 点赞 2 评论 255 浏览 评分:9.9
A+B for Input-Output Practice (IV) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i,sum=0; cin>>n; whi…… 题解列表 2022年04月24日 0 点赞 0 评论 292 浏览 评分:0.0
[编程入门]利润计算,简单算法。 摘要:解题思路:此类问题可属于简单类型的,只要读清楚题目,便能轻松的解决。注意事项:注意范围!!!参考代码:#include<stdio.h>int main(){ int l,n; scanf("%d",…… 题解列表 2022年04月24日 0 点赞 0 评论 344 浏览 评分:9.9
for的引用破解密码 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; cin>>s; for(auto…… 题解列表 2022年04月24日 0 点赞 0 评论 339 浏览 评分:0.0
小数点后保留N位 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ float a,c; c…… 题解列表 2022年04月24日 0 点赞 0 评论 357 浏览 评分:0.0
用筛法求之N内的素数。 摘要:解题思路:注意事项:参考代码:from math import *n=int(input())def pd(x): if x==2: return True else: …… 题解列表 2022年04月24日 0 点赞 0 评论 350 浏览 评分:0.0
字符串的输入输出处理 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): s=input() print(s) print()while True: s=…… 题解列表 2022年04月24日 0 点赞 0 评论 402 浏览 评分:0.0
The 3n + 1 problem 摘要:解题思路:注意事项:参考代码:def f(x): c=1 while x!=1: if x%2==0: x=x//2 else: …… 题解列表 2022年04月24日 0 点赞 0 评论 264 浏览 评分:0.0
C++进制转换输出 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; cout<<oct<<…… 题解列表 2022年04月24日 0 点赞 0 评论 364 浏览 评分:0.0