题解列表
The 3n + 1 problem
摘要:解题思路:注意事项:参考代码:def f(x): c=1 while x!=1: if x%2==0: x=x//2 else: ……
字符串的输入输出处理
摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): s=input() print(s) print()while True: s=……
用筛法求之N内的素数。
摘要:解题思路:注意事项:参考代码:from math import *n=int(input())def pd(x): if x==2: return True else: ……
for的引用破解密码
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; cin>>s; for(auto……
[编程入门]利润计算,简单算法。
摘要:解题思路:此类问题可属于简单类型的,只要读清楚题目,便能轻松的解决。注意事项:注意范围!!!参考代码:#include<stdio.h>int main(){ int l,n; scanf("%d",……
A+B for Input-Output Practice (IV)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i,sum=0; cin>>n; whi……
优质题解
2664: 蓝桥杯2022年第十三届省赛真题-求和
摘要:解题思路:我们观察式子可以发现,可以把每一个数提出来,以a1到a5为例S=a1*(a2+a3+a4+a5)+a2*(a3+a4+a5)+a3*(a4+a5)+a4*a5这样很容易想到前缀和,我们可以通……