1071阶乘公式求值(一个for循环解决) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); double m=1; double sum=0; for(int…… 题解列表 2024年05月25日 1 点赞 0 评论 559 浏览 评分:2.0
无聊的星期六 摘要:n=list(map(int,input().split())) tmp=n[n.index(max(n))] n[n.index(max(n))]=n[9] n[9]=tmp tmp=n[n…… 题解列表 2024年05月25日 1 点赞 0 评论 538 浏览 评分:2.0
找规律,凑组合 摘要:解题思路: 找规律注意事项: 假后面只能更假假或真真,真后面只能更真假或假真可能的组合有「假,假,假」「真,真,假」「真,假,真」「假,真,真」参考代码:#include<stdio.h> lo…… 题解列表 2024年05月30日 1 点赞 0 评论 489 浏览 评分:2.0
2799 奥运奖牌计数 摘要:解题思路: #include <bits/stdc++.h> using namespace std; int main() { int n,sum1=0, sum…… 题解列表 2024年06月16日 0 点赞 0 评论 378 浏览 评分:2.0
傻瓜式解决方法 摘要:倒序输出的思路可以从数字类比/图形输出类比就是要将一个过程拆成正反过程 这里类比就是改变循环条件,将循环倒过来 #include #include int main() { i…… 题解列表 2024年06月18日 0 点赞 0 评论 497 浏览 评分:2.0
球弹跳高度 摘要:解题思路:累加高度注意事项:参考代码:h=int(input())m=hfor i in range(10): m=m+h h=h/2print('%g'%m)print(…… 题解列表 2024年07月09日 0 点赞 0 评论 418 浏览 评分:2.0
合并循环,让代码更简洁 摘要:解题思路:// 用循环做,本质上是寻找i与空格,i与*的关系注意事项://注意寻找各个变量与i的关系参考代码:Scanner sc=new Scanner(System.in);String str=…… 题解列表 2024年07月13日 0 点赞 0 评论 601 浏览 评分:2.0
: [编程入门]结构体之成绩记录c程序 摘要:#include<stdio.h>struct dey{ int year; int month; int day; }runnian;int main(){// struct demo run…… 题解列表 2024年07月26日 0 点赞 0 评论 344 浏览 评分:2.0
4行:万花丛中过,片叶不沾身 摘要:解题思路:再也不想掉进整除的坑了注意事项:参考代码:a=int(input())b=int(input())print(a//b)print(a%b)…… 题解列表 2024年08月01日 0 点赞 0 评论 783 浏览 评分:2.0
正在路上,每一步都是生活 摘要:```n=int(input()) mc=[] for i in range(n): s=int(input()) mc.append(s) k=max(mc) sl=[0…… 题解列表 2024年08月03日 0 点赞 0 评论 578 浏览 评分:2.0