1739: 成绩排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> struct stu{ char name[101]; int age;…… 题解列表 2022年08月04日 0 点赞 0 评论 480 浏览 评分:9.9
字符格式化 摘要:解题思路:。。。。。。。。注意事项:。。。。。。。。。参考代码:n=int(input()) print(format(int(oct(n),8),'o'))…… 题解列表 2022年08月05日 0 点赞 0 评论 470 浏览 评分:9.9
温度转换,两行 摘要:解题思路:。。。。。。。。。。。。。。。。。注意事项:。。。。。。。。。。。。。。。参考代码:f=int(input()) print('{:.2f}'.format(5/9*(f-…… 题解列表 2022年08月05日 0 点赞 0 评论 546 浏览 评分:9.9
凑个数。。。。。 摘要:解题思路:。。。。。。。。。。。。。。。注意事项:。。。。。。。。。。。。。。。参考代码:x = float(input()) if x < 1: y = x elif x >= 1 an…… 题解列表 2022年08月05日 0 点赞 0 评论 377 浏览 评分:9.9
公式法求解 摘要:解题思路:等差公式前n项和:Sn=na1+n(n-1)d/2=(a1+an)n/2.注意事项:参考代码:n=int(input()) a1,an=2,2+3*(n-1) print(int((a1…… 题解列表 2022年08月05日 0 点赞 0 评论 315 浏览 评分:9.9
[编程入门]自定义函数之字符提取 摘要:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ char in[1000],out[1000]="…… 题解列表 2022年08月05日 0 点赞 0 评论 337 浏览 评分:9.9
[编程入门]自定义函数之字符类型统计 摘要:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ int a=0,b=0,c=0,d=0,l; …… 题解列表 2022年08月05日 0 点赞 0 评论 480 浏览 评分:9.9
解决猴子吃桃问题 摘要:解题思路:我们可以使用一下试数的办法,将问题给表达出来,例如第三天的时候只剩一个,得出表达式为:第三天剩余:f(3) = 1;第二天剩余:f(2) = 2 * (f(3)+1);第一天剩余:f(1) …… 题解列表 2022年08月05日 0 点赞 0 评论 272 浏览 评分:9.9
优质题解 #C++1398——你的开发任务(敲详细) 摘要:解题思路: 题目举例违禁词的时候说的是 "love"和"Love" ,于是我以为是仅仅是首字母的大小写而已,然后就这样连续修改,提交,错了10几次(心疼),也懊恼了好几个小时,我一直以为是中间处理出…… 题解列表 2022年08月05日 0 点赞 0 评论 581 浏览 评分:9.9
通过循环来来分解每位上的数 摘要:解题思路:通过对输入的数对10取余,获取这个数的最低位,然后再使这个数除以10并赋给它本身,完成对这数低位的分解并重置这个数剩下的数。注意事项:循环条件位这个数大于零。参考代码: …… 题解列表 2022年08月05日 0 点赞 0 评论 386 浏览 评分:9.9