题解列表

筛选

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<<"体重……

3044: 电池的寿命

摘要:解题思路:当n等于2时,返回最小值, 当n大于2时,返回和的一半注意事项:返回最小值时将整数转化为浮点数,以保留一位小数参考代码:#include#include#includeusing names……

题解 2809: 菲波那契数列

摘要:解题思路:注意事项:参考代码:k = int(input()) a1 = a2 = 1 for i in range(k - 2):     a1, a2 = a2, a1 + a2 prin……

3150-冶炼金属-简单易懂

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); int a,b;        scanf("%d %d",&a……

数字诗意(找规律)

摘要:解题思路:有诗意的数注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm>using namespace std;typede……