摘要:
7-1 Forever (20 分) #include <bits/stdc++.h> using namespace std; int N,K,m,number[10]; multimap<int,int> mp; int sum_digit(int num) { int sum=0; while 阅读全文
摘要:
KMP模板 [题目链接:][48ab497a] c++ include include using namespace std; int kmp(string t, string p) { int ans=0; int plen=p.length(); int next[plen],nextval[ 阅读全文
摘要:
A New Year and Counting Cards 题目链接: http://codeforces.com/contest/908/problem/A 思路: 如果卡片上面是数字,如果是奇数,就需要检查一下。如果是字母,如果是原音字母,需要检查一下。 代码: #include <bits/s 阅读全文
摘要:
Codeforces Round 452 (Div. 2) A Splitting in Teams 题目链接: [http://codeforces.com/contest/899/problem/A][2ef9cdcd] 思路: 统计1和2出现的次数,尽量使2能够与1匹配尽可能多用。假设1再匹配 阅读全文
摘要:
Codeforces Round 451 (Div. 2) A Rounding 题目链接: [http://codeforces.com/contest/898/problem/A][815db73d] 思路: 小于等于5向下,大于补上差值输出 代码: c++ include using name 阅读全文