2025/7/25刷题记录 摘要:解题思路:两个整数相除得浮点数结果要将其中一个数强转为浮点要不然会精度丢失注意事项:参考代码:#include<stdio.h>int main(){ int a…… 题解列表 2025年07月25日 0 点赞 0 评论 44 浏览 评分:0.0
求整数的和与均值 摘要:解题思路:注意事项:参考代码:int main(){ int n = 0; scanf("%d", &n);…… 题解列表 2025年06月13日 1 点赞 0 评论 143 浏览 评分:10.0
编写题解 2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ long long n,sum=0;cin>>n; for…… 题解列表 2024年12月22日 1 点赞 0 评论 403 浏览 评分:0.0
新手必看,*1.0的运用技巧 摘要:解题思路:对于for的应用程度注意事项:参考代码:#include <stdio.h>int main() { int n,b,sum=0.0; scanf("%d ",&n); for(int i…… 题解列表 2024年11月04日 2 点赞 0 评论 518 浏览 评分:10.0
python求整数的和与均值 摘要:解题思路:注意事项:参考代码:a = list(map(int,input().split()))while len(a)<=a[0]: a.extend(map(int,input().spl…… 题解列表 2024年09月05日 0 点赞 0 评论 793 浏览 评分:5.3
无聊的星期六 摘要:无聊上个动态。 #include<stdio.h> #include<stdlib.h> int main(){ int size,sum=0; scanf("%d",&size)…… 题解列表 2024年05月25日 0 点赞 0 评论 421 浏览 评分:0.0
利用创建动态数组的方法实现求和与均值 摘要:解题思路:注意事项:参考代码: import java.util.Scanner; import java.util.List; import java.util.ArrayList…… 题解列表 2024年04月21日 0 点赞 0 评论 161 浏览 评分:0.0
编写题解 2796: 求整数的和与均值(Python) 摘要:注意事项:这个题是根据C语言来设计的,由于Python和C的输入存在差异,所以在这里我们要判断数据是一行还是多行输入(这个是本站的设计缺陷造成)参考代码:n=list(map(int,input().…… 题解列表 2024年04月01日 4 点赞 0 评论 935 浏览 评分:10.0
python 编写题解 2796: 求整数的和与均值 摘要:参考代码:n = map(int, input().split()) n = list(n) if len(n) == 1: arr = [int(input()) for _ in r…… 题解列表 2024年03月11日 0 点赞 0 评论 711 浏览 评分:0.0