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 评论 321 浏览 评分:0.0
字符串的输入输出处理 摘要:解题思路:注意事项:参考代码:n=int(input())for i in range(n): s=input() print(s) print()while True: s=…… 题解列表 2022年04月24日 0 点赞 0 评论 473 浏览 评分:0.0
用筛法求之N内的素数。 摘要:解题思路:注意事项:参考代码:from math import *n=int(input())def pd(x): if x==2: return True else: …… 题解列表 2022年04月24日 0 点赞 0 评论 418 浏览 评分:0.0
小数点后保留N位 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ float a,c; c…… 题解列表 2022年04月24日 0 点赞 0 评论 442 浏览 评分:0.0
for的引用破解密码 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; cin>>s; for(auto…… 题解列表 2022年04月24日 0 点赞 0 评论 422 浏览 评分:0.0
[编程入门]利润计算,简单算法。 摘要:解题思路:此类问题可属于简单类型的,只要读清楚题目,便能轻松的解决。注意事项:注意范围!!!参考代码:#include<stdio.h>int main(){ int l,n; scanf("%d",…… 题解列表 2022年04月24日 0 点赞 0 评论 407 浏览 评分: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 评论 354 浏览 评分:0.0
简单又暴力 摘要:解题思路:逐层思考思考,简单暴力。注意事项:注意开始的位置。参考代码:#include<stdio.h>int main(void){ int m,n,a,b; scanf("%d%d",&m,&n)…… 题解列表 2022年04月24日 0 点赞 2 评论 310 浏览 评分:9.9
优质题解 2664: 蓝桥杯2022年第十三届省赛真题-求和 摘要:解题思路:我们观察式子可以发现,可以把每一个数提出来,以a1到a5为例S=a1*(a2+a3+a4+a5)+a2*(a3+a4+a5)+a3*(a4+a5)+a4*a5这样很容易想到前缀和,我们可以通…… 题解列表 2022年04月24日 0 点赞 8 评论 7088 浏览 评分:9.6
结构体之时间设计 摘要:解题思路:将12个月每个月的天数保存在一个一维数组中。再判断输入的年份是否为闰年,如果是,就更换一维数组中2月份的总天数。之后将前几个月的总天数累加,再加上这个月的天数,得到的就是今年时一年中的第几天…… 题解列表 2022年04月23日 0 点赞 0 评论 441 浏览 评分:9.9