上一页 1 2 3 4 5 6 ··· 9 下一页

2015年10月7日

统计字母个数

摘要: 1164: 统计字母个数Time Limit: 1 SecMemory Limit: 128 MBSubmit: 890Solved: 437[Submit][Status][BBS]Description给定一段文章,请输出每个字母出现的次数Input只有一组输入数据,该数据大小#include ... 阅读全文

posted @ 2015-10-07 19:55 甜蜜蜜吖甜蜜蜜 阅读(1020) 评论(0) 推荐(0) 编辑

2015年9月29日

NOJ-1163-素数回文

摘要: 1163: 素数回文Time Limit: 1 SecMemory Limit: 128 MBSubmit: 358Solved: 119[Submit][Status][BBS]Description小王对既是素数又是回文的数特别感兴趣。比如说151既是素数又是个回文。现在小王想要你帮助他找出某个... 阅读全文

posted @ 2015-09-29 21:05 甜蜜蜜吖甜蜜蜜 阅读(426) 评论(0) 推荐(0) 编辑

NOJ-1162-简单编码

摘要: 1162: 简单编码Time Limit: 1 SecMemory Limit: 128 MBSubmit: 375Solved: 99[Submit][Status][BBS]Description最近Kingly对编码很感兴趣,于是从网上找了一些编码原则来对字符串做实验。由于Kingly一直很忙... 阅读全文

posted @ 2015-09-29 19:50 甜蜜蜜吖甜蜜蜜 阅读(424) 评论(0) 推荐(0) 编辑

2015年9月22日

POJ-1321-棋盘问题

摘要: 棋盘问题Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 29121Accepted: 14434Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行... 阅读全文

posted @ 2015-09-22 21:01 甜蜜蜜吖甜蜜蜜 阅读(205) 评论(0) 推荐(0) 编辑

2015年9月20日

HDU-2553-N皇后问题

摘要: N皇后问题Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 13559Accepted Submission(s): 6155Problem Desc... 阅读全文

posted @ 2015-09-20 19:22 甜蜜蜜吖甜蜜蜜 阅读(186) 评论(0) 推荐(0) 编辑

2015年9月8日

POJ-1502-MPI Maelstrom

摘要: 问题描述 BIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey distributed shared memory machine with a hierarchical c... 阅读全文

posted @ 2015-09-08 14:43 甜蜜蜜吖甜蜜蜜 阅读(152) 评论(0) 推荐(0) 编辑

POJ-3268-Silver Cow Party

摘要: 问题描述One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at farm #X (1 ≤ X ≤ N). A t... 阅读全文

posted @ 2015-09-08 09:54 甜蜜蜜吖甜蜜蜜 阅读(144) 评论(0) 推荐(0) 编辑

2015年9月7日

POJ-1125-Stockbroker Grapevine

摘要: 问题描述 Stockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformation amongst the stockbrokers... 阅读全文

posted @ 2015-09-07 20:04 甜蜜蜜吖甜蜜蜜 阅读(82) 评论(0) 推荐(0) 编辑

SPFA算法模板

摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int inf=1 q;15 void add(int u,int v,int c)16 {17 pnt[e]=v;1... 阅读全文

posted @ 2015-09-07 14:36 甜蜜蜜吖甜蜜蜜 阅读(121) 评论(0) 推荐(0) 编辑

邻接表

摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn=1100; 6 const int maxm=maxn*maxn/2; 7 int n,m; 8 int head[maxn],nxt[maxn],pn... 阅读全文

posted @ 2015-09-07 10:04 甜蜜蜜吖甜蜜蜜 阅读(156) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 9 下一页

导航