2862: 字符串移位包含问题 摘要: #include using namespace std; const int N=100010; char a[N],b[N]; int main()…… 题解列表 2023年12月17日 0 点赞 0 评论 289 浏览 评分:0.0
2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x; cin >> x ; …… 题解列表 2023年12月17日 0 点赞 0 评论 190 浏览 评分:0.0
2787: 有一门课不及格的学生 摘要:解题思路:注意事项:有一门课几个另一门课一定不及格参考代码:#include <iostream>using namespace std;int main(){ int x,y; cin …… 题解列表 2023年12月17日 0 点赞 0 评论 161 浏览 评分:9.9
2999: 牛吃牧草 摘要:解题思路:#设一头牛一天吃n份草#原有s份草#每天增加a份草得方程s+20a=15n*20 s+10a=20n*10解得a/n=(15*20-20*10)/(20-10)=10注意事项:参考代码:…… 题解列表 2023年12月17日 3 点赞 0 评论 1366 浏览 评分:7.3
2784: 收集瓶盖赢大奖 摘要:解题思路:注意事项:||是或者参考代码:#include <iostream>using namespace std;int main(){ int x,y; cin >> x >>y ;…… 题解列表 2023年12月17日 0 点赞 0 评论 161 浏览 评分:0.0
成绩排序(python匿名函数解法) 摘要:解题思路:思路不难,python创建一个列表存储姓名和成绩,然后再将所有人的成绩存储到一个列表当中,直接用sort函数搭配lambda匿名函数对成绩和名字的字典序进行排序,再用for循环一一输出即可注…… 题解列表 2023年12月17日 0 点赞 0 评论 298 浏览 评分:0.0
2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int x,y; cin >> x >>y ; i…… 题解列表 2023年12月17日 0 点赞 0 评论 215 浏览 评分:0.0
编写题解 3006: 适合晨练 摘要:解题思路:#include <bits/stdtr1c++.h>using namespace std;int main(){ int t; cin>>t; if(25<=t && …… 题解列表 2023年12月17日 0 点赞 1 评论 241 浏览 评分:9.0
题解 1783: 星期判断机 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; switch(a) …… 题解列表 2023年12月17日 0 点赞 0 评论 136 浏览 评分:0.0
3006: 适合晨练 摘要:解题思路:注意事项:25<=t<=30应为(25<=t && t<=30)参考代码:#include <iostream>using namespace std;int main(){ int …… 题解列表 2023年12月17日 0 点赞 0 评论 213 浏览 评分:0.0