
校赛网络赛
Huglight
这个作者很懒,什么都没留下…
展开
-
2016校赛网络赛C寻找万神
先取巧了一波,直接用string处理,时间感人,之后再来优化 #include<bits/stdc++.h> using namespace std; const long long maxn = 100+5; int n, ans;; string str[maxn]; int main() { while (cin >> n) { ans = 0; for ...原创 2019-04-10 17:53:34 · 143 阅读 · 0 评论 -
2016校赛网络赛D抢人头
#include<bits/stdc++.h> using namespace std; const long long maxn = 100+5; long long a, x, y; int main() { while (cin >> x) { cin >> y >> a; a %= x+y; if (a != 0 &&...原创 2019-04-10 17:54:39 · 146 阅读 · 0 评论 -
2016校赛网络赛E删除字符
建立一张字母表 #include<bits/stdc++.h> using namespace std; const long long maxn = 10000+5; string s1, s2; int main() { while (cin >> s1 >> s2) { int t[maxn]; string ans = ""; mems...原创 2019-04-10 21:00:01 · 121 阅读 · 0 评论 -
2016校赛网络赛A z1+z2
用的string跟stringstream直接转换类型求和了。。。 #include<bits/stdc++.h> using namespace std; const long long maxn = 100+5; string z1, z2, ans; int main() { while (cin >> z1 >> z2) { string k1[...原创 2019-04-10 19:55:19 · 232 阅读 · 0 评论 -
2016校赛网络赛B猴子吃桃
#include<bits/stdc++.h> using namespace std; const long long maxn = 10000+5; long long n, f[maxn]; int main() { f[0] = 0; f[1] = 1; for (int i = 2; i < 93; i++) f[i] = f[i-1] + f[i-2]; ...原创 2019-04-10 20:17:00 · 317 阅读 · 0 评论