摘要:
A - Gothec 判断一下是否是那个日子就行了。 点击查看代码 //因为月亮是最高级别的褒奖。 #include<bits/stdc++.h> using namespace std; int a,b; signed main(){ cin >> a >> b; if(a == 1&&b == 阅读全文
摘要:
A. New Year String 首先扫一遍整个字符串,计算\(2025\)的个数和\(2026\)的个数,如果\(2025\)个数为\(0\)或\(2026\)个数不为\(0\),那么不用变,否则一定有至少一个\(2025\),我们把这个\(2025\)的\(5\)变为\(6\),那么\(20 阅读全文
摘要:
A - illegal 判一下字符串长度是否为\(5\)的倍数即可。 点击查看代码 //草扎的精神,从此万寿无疆。 #include<bits/stdc++.h> using namespace std; signed main(){ string s; cin >> s; int n = s.le 阅读全文
摘要:
A - π \(S = \pi (\frac{d}{2})^2\),而且通过第一个样例就可以知道\(\pi\)是多少。 点击查看代码 //再次相聚之前,谢谢你带我回到这人世间。 #include<bits/stdc++.h> using namespace std; signed main(){ d 阅读全文
摘要:
A. Passing the Ball 模拟记录一下即可。 点击查看代码 //像太阳半沉在海水里,光和浪潮交织出了浓稠的雾。 #include<bits/stdc++.h> #define int long long using namespace std; int n; char c[55]; b 阅读全文
摘要:
强联通分量 点击查看代码 #include<bits/stdc++.h> using namespace std; int n,m; vector<int> e[10005]; int dfn[10005],low[10005],timtp; int stk[10005],stktp; bool i 阅读全文