题解列表
编写题解 2794: 求平均年龄
摘要:解题思路:首先使用 Scanner 类获取输入的数据。接下来,使用 for 循环遍历每个学生的年龄,将其加到年龄总和变量 sum 中。计算平均年龄,将年龄总和除以学生人数,需要将其转换为 double……
1779: 你的第一个C语言程序
摘要:## C++标准输出
> `cout`函数
```c++
#include
using namespace std;
int main()
[
cout……
字符串的函数和切片用的越来越熟练
摘要:解题思路:字符串反过来找到最近的注意事项:参考代码:l=list(input().split(','))ln=len(l[0])la=len(l[1])lb=len(l[2])if l……
编写题解 2917: 奇数单增序列 (集合sort方法)
摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Scanner;public class Main { public static……
感谢支持,谢谢你们的支持
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int b,c; float a; cin>>a; ……
编写题解 2788: 晶晶赴约会
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a; cin>>a; if(a!……
感谢支持,谢谢你们的支持
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a……