题解列表
2812: 球弹跳高度的计算
摘要:解题思路:注意事项:令人忍俊不禁参考代码:height=float(input())sum=-heightsum=float(sum)for i in range(1,11): sum=sum+……
题解 2772: 苹果和虫子
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>>x……
LJX...............................................................
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int n,a,b,sum=0,ans=0; cin>>……
编写题解 1138: C语言训练-求矩阵的两对角线上的元素之和
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main(int n){
scanf("%d",&n);
int a[n][n],i,j;
for(i=0;i<……
1002: [编程入门]三个数最大值
摘要:解题思路:注意事项:这里要比较六次参考代码:#include <iostream>using namespace std;int main(){ int a,b,c; cin >> a>>……
JAVA 糖果游戏升级版
摘要:解题思路:如果换成动态的n,不指定5 可能 6 7 8 9用数组来存储数据,先判断加减后是否超过左边界或者右边界如果超出进行数组下标调整注意事项:参考代码:import java.util.Sca……
vhgnghlkjhgfdsdfftghjkl;lkjhgfrde
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double h,w,b; cout<<"体重……
python版代码!!!!
摘要:解题思路:注意事项:参考代码:def f(x): if 0 <= x < 5: result = -x + 2.5 elif 5 <= x < 10: resu……
3044: 电池的寿命
摘要:解题思路:当n等于2时,返回最小值, 当n大于2时,返回和的一半注意事项:返回最小值时将整数转化为浮点数,以保留一位小数参考代码:#include#include#includeusing names……