题解 1783: 星期判断机 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; switch(a) …… 题解列表 2023年12月17日 0 点赞 0 评论 434 浏览 评分:0.0
2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int x,y; cin >> x >>y ; i…… 题解列表 2023年12月17日 0 点赞 0 评论 459 浏览 评分:0.0
成绩排序(python匿名函数解法) 解题思路:思路不难,python创建一个列表存储姓名和成绩,然后再将所有人的成绩存储到一个列表当中,直接用sort函数搭配lambda匿名函数对成绩和名字的字典序进行排序,再用for循环一一输出即可注意事项:lambda函数的用法,sort函数的用法参考代码:n=int(input())sum_gra 题解列表 2023年12月17日 0 点赞 0 评论 718 浏览 评分:0.0
2784: 收集瓶盖赢大奖 摘要:解题思路:注意事项:||是或者参考代码:#include <iostream>using namespace std;int main(){ int x,y; cin >> x >>y ;…… 题解列表 2023年12月17日 0 点赞 0 评论 370 浏览 评分:0.0
2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >> x ; …… 题解列表 2023年12月17日 0 点赞 0 评论 425 浏览 评分:0.0
2862: 字符串移位包含问题 #includeusingnamespacestd;constintN=100010;chara[N],b[N];intmain(){cin>>a+1>>b+1;intn=strlen(a+1),m=strlen(b+1);for(inti=1;i 题解列表 2023年12月17日 0 点赞 0 评论 604 浏览 评分:0.0
题解 2862: 字符串移位包含问题 #includeusingnamespacestd;constintN=200000;chara[N],b[N];intmain(){cin>>a>>b;intn=strlen(a),m=strlen(b);for(inti=0;i 题解列表 2023年12月17日 0 点赞 0 评论 531 浏览 评分:0.0
2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >> x ; …… 题解列表 2023年12月17日 0 点赞 0 评论 407 浏览 评分:0.0
2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >> x ; …… 题解列表 2023年12月17日 0 点赞 0 评论 431 浏览 评分:0.0
for and if买房子 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int main(){ double y=200; …… 题解列表 2023年12月17日 0 点赞 0 评论 583 浏览 评分:0.0