• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Kesha小朋友
博客园    首页    新随笔    联系   管理    订阅  订阅
2013年12月20日
hdu 1003 Swicth Game (基础题)
摘要: 链接:http://acm.hdu.edu.cn/showproblem.php?pid=2053一开始做这道题的时候还是想用了用三原色的那种方法来做了一下,果然,超时了,看如下代码:#include #include #include using namespace std;int Kesha[100005];int main() { int n; while(~scanf("%d", &n)) { memset(Kesha, 0, sizeof(Kesha)); for(int i=1; i#include #include #include usi... 阅读全文
posted @ 2013-12-20 20:41 Kesha小朋友 阅读(351) 评论(0) 推荐(0)
hdu 1003 Max Sum (基础题)
摘要: 链接:http://acm.hdu.edu.cn/showproblem.php?pid=1003解题代码如下: 1 #include 2 #include 3 using namespace std; 4 5 int Kesha[100005]; 6 7 int main() { 8 int t, k = 0; 9 scanf("%d", &t);10 11 while(t--) {12 k++;13 int n, p = 0;14 scanf("%d", &n);15 for(int i... 阅读全文
posted @ 2013-12-20 19:39 Kesha小朋友 阅读(155) 评论(0) 推荐(0)
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3