• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Eric.cpp
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

随笔分类 -  Codeforces

 
Codeforces Round #180
摘要:A..B..C..详情见https://github.com/ericliu859/未来Codeforces.Topcoder,Codechef的代码将转移到github上。。敬请关注。 阅读全文
posted @ 2013-04-21 01:22 Eric.cpp 阅读(205) 评论(0) 推荐(0)
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.这两句鸟语下午饿着肚子硬读了好 阅读全文
posted @ 2012-08-13 00:06 Eric.cpp 阅读(247) 评论(0) 推荐(0)
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; 阅读全文
posted @ 2012-08-11 02:54 Eric.cpp 阅读(332) 评论(0) 推荐(0)
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+ 阅读全文
posted @ 2012-08-10 16:32 Eric.cpp 阅读(333) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3