sort解法,在cmp函数里截取生日子串判断 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<cstring> using namespace std; str…… 题解列表 2022年07月29日 0 点赞 3 评论 429 浏览 评分:9.9
使用sort函数和cmp函数截取生日子串 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string shenfenzheng[101010];bool cmp(strin…… 题解列表 2022年07月29日 0 点赞 0 评论 400 浏览 评分:9.9
1009 [编程入门]数字的处理与判断 摘要:解题思路:简单粗暴多个if直接搞定注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a,b,c,d,…… 题解列表 2022年07月30日 0 点赞 0 评论 308 浏览 评分:9.9
三层复合循环求解 摘要:解题思路:通过三层循环嵌套,对个位,十位和百位从0~9进行遍历注意事项:题目中表明输出是三位数,因此通过控制输出条件舍去同样符合条件的0(a=b=c=0)和1(a=b=0;c=1)——————[1]参…… 题解列表 2022年07月30日 0 点赞 0 评论 280 浏览 评分:9.9
2208: 有趣的比赛(DSF) 摘要:测试数据较小,所以可以用深搜去一个一个枚举出来AC代码:#include<bits/stdc++.h> using namespace std; int add=0; int score; v…… 题解列表 2022年07月30日 0 点赞 0 评论 413 浏览 评分:9.9
去注释较为容易的做法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; bool f=1; b…… 题解列表 2022年07月30日 0 点赞 0 评论 378 浏览 评分:9.9
幸运儿(数组) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n;bool flag[100];bool f(){ int num=…… 题解列表 2022年07月30日 0 点赞 0 评论 324 浏览 评分:9.9
[C++]有规律的数列求和(解析) 摘要:解题思路:分别观察分子与分母的数字分子:2 3 5 8 13 21...分母:1 2 3 5 8 13...可得知分子,分母遵循前两项和等于第三项的规律,分别为两组斐波那契数组通常情况下,得知前两项可…… 题解列表 2022年07月30日 0 点赞 0 评论 496 浏览 评分:9.9
2327: 信息学奥赛一本通T1311-求逆序对(树状数组+离散化) 摘要:通过题目知道逆序对知道当前数后面比他小的数就是逆序对,那么我们知道树状数组返回的就是前缀和,那么我们只将数据当成下标从后往前放入树状数组中,然后对其+1,然后求他前面一个数的前缀和就是当前数的逆序对数…… 题解列表 2022年07月30日 0 点赞 3 评论 485 浏览 评分:9.9
循环题解矩形的福利 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std; int main() { int i,j; int t,a=0…… 题解列表 2022年07月30日 0 点赞 0 评论 346 浏览 评分:9.9