题解列表

筛选

成绩排序(python匿名函数解法)

摘要:解题思路:思路不难,python创建一个列表存储姓名和成绩,然后再将所有人的成绩存储到一个列表当中,直接用sort函数搭配lambda匿名函数对成绩和名字的字典序进行排序,再用for循环一一输出即可注……

2784: 收集瓶盖赢大奖

摘要:解题思路:注意事项:||是或者参考代码:#include <iostream>using namespace std;int main(){    int x,y;    cin >> x >>y ;……

2779: 输出绝对值

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

2779: 输出绝对值

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

2779: 输出绝对值

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

for and if买房子

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int main(){    double y=200;  ……

字符串连接

摘要:解题思路:注意事项:参考代码#include<stdio.h>#include<string.h>int main() {    char arr1[100];    gets(arr1);    i……