贪心平面极大点 摘要:解题思路:用贪心写就对了,用暴力就只能过几个测试点,为啥嘞?纯暴力还有遗漏情况?注意事项:这个是贪心,暴力看上一篇参考代码:n = int(input()) record = [] list = …… 题解列表 2023年10月12日 0 点赞 0 评论 527 浏览 评分:9.9
2791: 计算邮资 摘要:```cpp #include using namespace std; int main() { int weight; char ji; scanf("%d …… 题解列表 2023年10月12日 0 点赞 0 评论 624 浏览 评分:9.9
合影效果(分两个数组来做) 摘要:解题思路:分两个数组,一个数组存男生,一个数组存女生,用strcmp判断男女注意事项:参考代码:#include<stdio.h> #include<string.h> int main() {…… 题解列表 2023年10月12日 0 点赞 0 评论 579 浏览 评分:9.9
[编程入门]三个字符串的排序(用结构体来做) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> struct string { char a[100]; }; int ma…… 题解列表 2023年10月12日 0 点赞 0 评论 516 浏览 评分:9.9
C语言训练-"水仙花数"问题2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int b,s,g,i; for(i=100;i<=999;i++) {b=i/100; g=i%10;…… 题解列表 2023年10月13日 0 点赞 0 评论 527 浏览 评分:9.9
c语言代码队列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>struct queue { int head; int tail; int q[100];}d;i…… 题解列表 2023年10月13日 1 点赞 0 评论 660 浏览 评分:9.9
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a>=10000) printf("%d\n",5);…… 题解列表 2023年10月13日 0 点赞 0 评论 470 浏览 评分:9.9
数字的处理与判断c 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e,f,g; scanf("%d",&a); { b=a/10000; …… 题解列表 2023年10月13日 0 点赞 0 评论 562 浏览 评分:9.9
姜太公钓鱼 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,k=0; scanf("%d",&n); int a[n-1]; for(int i=1;i<…… 题解列表 2023年10月13日 0 点赞 0 评论 613 浏览 评分:9.9
利用Switch解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int grade;scanf("%d",&grade);grade/=10;switch(grade){case…… 题解列表 2023年10月13日 0 点赞 0 评论 642 浏览 评分:9.9