摘要:
比赛链接:https://codeforces.com/gym/105383/problem A. Animal Farm 找个最大pig,然后所有比他小的其他种类生物一直加就好了 #include<bits/stdc++.h> using namespace std; typedef long l 阅读全文
摘要:
比赛链接:https://codeforces.com/contest/2030 A. A Gift From Orangutan 肯定最小值和最大值放前面最好,答案得解 #include<iostream> #include<string.h> #include<map> #include<vec 阅读全文
摘要:
题目链接:https://codeforces.com/contest/1859 A. United We Stand 选最大的数即可注意题目输出格式 #include<iostream> #include<string.h> #include<map> #include<vector> #incl 阅读全文
摘要:
A. Simple Palindrome aeiou,如果这里后面+u则会多出2,+o则会多3,通过分析加相同的字母比加之前存在的不同字母赚 发现同一个太多了,又会增太大,遂平均分配,使增多幅度上升的缓慢 #include<bits/stdc++.h> using namespace std; ty 阅读全文
摘要:
题目链接:https://qoj.ac/contest/1480 这次有个强队去讲课,偶幸校队赛时第一 C - Catch You Catch Me 队友写的,签到题吧? #include<bits/stdc++.h> #define endl '\n' using namespace std; t 阅读全文