题解列表

筛选

排队打水问题贪心求解

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; const int N = 510; in……

2794: 求平均年龄

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long n;    double b=0……

3010: 奇偶数之和(超简单)

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){   int n;   cin>>n;   long long……

题解 3010: 奇偶数之和

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int i,n,s1,s2;    s1=0;   ……

题解 2000: 偶数列举

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int i,n;    cin>>n;    for……

最清晰、简单Python代码 递归 母牛的故事

摘要:解题思路:首先在表格上画一下,方便理解本题年份\年龄1岁2岁3岁成年总数第一年00011第二年10012第三年11013第四年11114第五年21126那么接下来稍微找一下规律就会发现其实非常简单,根……