Codeforces Round #180
    
            
摘要:A..B..C..详情见https://github.com/ericliu859/未来Codeforces.Topcoder,Codechef的代码将转移到github上。。敬请关注。
        
阅读全文
 
        
            
    Codeforces Beta Round #97 (Div. 2)
    
            
摘要:生气,比赛时就做出两道。A题,手速题,数组从属关系。B题,手速题,模拟三进制。C题,手速题,但我感觉明明就是阅读题,读明白了就能瞬秒,英语拙疾。1.what minimum number could occupy it after the replacement and the sorting.2.Printnspace-separated integers — the minimum possible values of each array element after one replacement and the sorting are performed.这两句鸟语下午饿着肚子硬读了好
        
阅读全文
 
        
            
    Codeforces Round #107 (Div. 1) 某字符串任何子串都为回文串
    
            
摘要:Any its substring with length equal tokis a palindrome.对于一个长度为n的串,任何它的长度为k的字串都是回文串。该串具有这样的性质:如果k为偶数,母串所有字符都相等;aaaaaa如果k为奇数,母串最多由两种字母组成;abababaView Code #include <iostream>#include <math.h>#define MOD 1000000007using namespace std;long long ppow(long long x,long long y){ long long res=1; 
        
阅读全文
 
        
            
    Codeforces Round #107 (Div. 1) (快速求质因子、vector)
    
            
摘要:Div.1太虐心了,也许,这就是我飞跃的开始。就做了个A题,学会了vector的ans.push_back(i),ans.size(),ans.clear():View Code #include <iostream>#include <stdio.h>#include <vector>using namespace std;vector<long long>ans;int main(){ long long q; while(cin >> q){ ans.clear(); for(long long i=2;i*i<=q;i+
        
阅读全文