02 2025 档案
摘要:A - 22222 遍历字符串\(s\),按题意输出所有2即可。 点击查看代码 #include<bits/stdc++.h> #define int long long using namespace std; string s; signed main(){ cin>>s; for(auto a
阅读全文
摘要:A - Poisonous Oyster 如果两人都肚子疼,就是第\(1\)瓶。 如果只有Takahashi肚子疼,就是第\(2\)瓶。 如果只有Aoki肚子疼,就是第\(3\)瓶。 如果都不肚子疼,就是第\(4\)瓶。 时间复杂度\(O(1)\)。 点击查看代码 #include<bits/std
阅读全文
摘要:A - Shuffled Equation 显然只有最大值可能被相乘得到,所以对\(a\)从小到大排序,判断\(a[0]\times a[1]=a[2]\)是否成立即可。 时间复杂度\(O(1)\)。 点击查看代码 #include<bits/stdc++.h> using namespace st
阅读全文