05 2024 档案
摘要:A link 模拟整个过程即可。 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; signed main(){ int h; cin >> h; int day = 1ll,g = 0ll; whil
阅读全文
摘要:A link 暴力寻找 及以后比 大的数。 点击查看代码 #include<bits/stdc++.h> using namespace std; int n; int a[105]; signed main(){ cin >> n; for(int i = 1;i <= n;+
阅读全文
摘要:思路 大体是多个联通块,枚举每一个点,如果所在联通块已经搜过,不在搜,如果没搜过,搜联通块。 题目 AcWing1097 AcWing1098 AcWing1106
阅读全文
摘要:A link 停不到, 能停到。 要先判断是从前往后还是从后往前。 点击查看代码 #include<bits/stdc++.h> using namespace std; signed main(){ int n,x,y,z; cin >> n >> x >> y >> z; if
阅读全文
摘要:A link 其实,只要有第一次,那么下次随意找一个队列里有的数加 个进去,加上队列里那一个删掉 个,到最后一次肯定是剩 个。 没有第一次,就是 。 点击查看代码 #include<bits/stdc++.h> using namespace std; int
阅读全文
摘要:A link 算出两个队分别得了几分,让木青队的总得分比高桥队多 即可。 点击查看代码 #include<bits/stdc++.h> using namespace std; int gq,mq; signed main(){ int x; for(int i = 1;i <= 9;++
阅读全文