上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 56 下一页
摘要: 思路:每次找出剩下瓶子的最小值,交换到前面去 #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e 阅读全文
posted @ 2024-06-28 15:04 CRt0729 阅读(21) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e4+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 14:59 CRt0729 阅读(48) 评论(0) 推荐(0)
摘要: 思路:非常经典的先循环,然后check(i)是否满足条件 #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int 阅读全文
posted @ 2024-06-28 14:57 CRt0729 阅读(78) 评论(0) 推荐(0)
摘要: 思路:先通过数列第1、2小的值求最大公约数得到公差,然后再推算出项数公式算有多少项 #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace st 阅读全文
posted @ 2024-06-28 14:56 CRt0729 阅读(172) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 2e6+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 14:53 CRt0729 阅读(38) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N = 1e3+10,inf = 0x3f3f3f3f; int main() { int money = 0,c = 0,s; for(int 阅读全文
posted @ 2024-06-28 14:51 CRt0729 阅读(25) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 14:51 CRt0729 阅读(51) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 14:49 CRt0729 阅读(116) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e6+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 14:48 CRt0729 阅读(46) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> #define f(i,s,e) for(int i = s; i <= e; i++) #define ll long long using namespace std; const int N = 1e3+10,inf = 0x3f3f3f3f; 阅读全文
posted @ 2024-06-28 14:47 CRt0729 阅读(42) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 56 下一页