2016年2月4日

[2016-02-04][矩阵快速幂]

摘要: [2016-02-04][矩阵快速幂]12345678910111213141516171819202122232425262728293031323334353637#define MOD 10000const int mat_size = 2;struct matrix{ long long a[mat_size][mat_size];};matrix matrixE;//单位矩... 阅读全文

posted @ 2016-02-04 23:59 红洋 阅读(169) 评论(0) 推荐(0)

[2016-02-04][HDU][5501][The Highest Mark]

摘要: [2016-02-04][HDU][5501][The Highest Mark]HDU - 5501The Highest MarkTime Limit: 1000MSMemory Limit: 131072KB64bit IO Format: %I64d & %I64uSubmit StatusDescriptionThe SDOI in $2045$ is far from what it ... 阅读全文

posted @ 2016-02-04 23:01 红洋 阅读(199) 评论(0) 推荐(0)

[2016-02-04][CF][437C][The Child and Toy]

摘要: [2016-02-04][CF][437C][The Child and Toy]CodeForces - 437CThe Child and ToyTime Limit: 1000MSMemory Limit: 262144KB64bit IO Format: %I64d & %I64uSubmit StatusDescriptionOn Children's Day, the child go... 阅读全文

posted @ 2016-02-04 22:57 红洋 阅读(218) 评论(0) 推荐(0)

[2016-02-04][CF][500C][New Year Book Reading]

摘要: [2016-02-04][CF][500C][New Year Book Reading]CodeForces - 500CNew Year Book ReadingTime Limit: 2000MSMemory Limit: 262144KB64bit IO Format: %I64d & %I64uSubmit StatusDescriptionNew Year is coming, and... 阅读全文

posted @ 2016-02-04 22:52 红洋 阅读(188) 评论(0) 推荐(0)

[2016-02-04][CF][545C][Woodcutters]

摘要: [2016-02-04][CF][545C][Woodcutters]WoodcuttersTime Limit: 1000MSMemory Limit: 262144KB64bit IO Format: %I64d & %I64uSubmit StatusDescriptionLittle Susie listens to fairy tales before bed every day. To... 阅读全文

posted @ 2016-02-04 22:42 红洋 阅读(187) 评论(0) 推荐(0)

[2016-02-04][CF][569B][Inventory]

摘要: [2016-02-04][CF][569B][Inventory]InventoryTime Limit: 1000MSMemory Limit: 262144KB64bit IO Format: %I64d & %I64uSubmit StatusDescriptionCompanies always have a lot of equipment, furniture and other th... 阅读全文

posted @ 2016-02-04 22:38 红洋 阅读(189) 评论(0) 推荐(0)

[2016-02-04][HDU][1053][Entropy]

摘要: [2016-02-04][HDU][1053][Entropy]EntropyTime Limit: 1000MSMemory Limit: 32768KB64bit IO Format: %I64d & %I64uSubmit StatusDescriptionAn entropy encoder is a data encoding method that achieves lossless ... 阅读全文

posted @ 2016-02-04 22:33 红洋 阅读(199) 评论(0) 推荐(0)

[2016-02-04][POJ][1328][Radar Installation]

摘要: [2016-02-04][POJ][1328][Radar Installation]Radar InstallationTime Limit: 1000MSMemory Limit: 10000KB64bit IO Format: %I64d & %I64uSubmit StatusDescriptionAssume the coasting is an infinite straight li... 阅读全文

posted @ 2016-02-04 22:20 红洋 阅读(172) 评论(0) 推荐(0)

[2016-02-04][HDU][2037][今年暑假不AC]

摘要: [2016-02-04][HDU][2037][今年暑假不AC]今年暑假不ACTime Limit: 1000MSMemory Limit: 32768KB64bit IO Format: %I64d & %I64uSubmit StatusDescription“今年暑假不AC?” “是的。” “那你干什么呢?” “看世界杯呀,笨蛋!” “@#$%^&*%...” 确实如此,世界杯来了,球迷的节... 阅读全文

posted @ 2016-02-04 21:28 红洋 阅读(137) 评论(0) 推荐(0)

[2016-02-04][HDU][1009][FatMouse' Trade]

摘要: [2016-02-04][HDU][1009][FatMouse' Trade] FatMouse' Trade Time Limit: 1000MS Memory Limit: 32768KB 64bit IO Format: %I64d & %I64u Submit Status Descrip 阅读全文

posted @ 2016-02-04 21:13 红洋 阅读(133) 评论(0) 推荐(0)

[2016-02-03][KMP算法]

摘要: [2016-02-03][KMP算法]123456789101112131415161718192021222324252627282930313233const int maxn = 1E5 + 10;const int maxm = 1E4 + 10;int next[maxm];int kkk[maxn];void makenext(char P[]){ //m p中的元素的数... 阅读全文

posted @ 2016-02-04 00:59 红洋 阅读(160) 评论(0) 推荐(0)

[2016-02-04][HDU][3746][Cyclic Nacklace]

摘要: [2016-02-04][HDU][3746][Cyclic Nacklace]时间:2016-02-04 00:14:53 星期四题目编号:HDU 3746题目大意:给出一个字符串,把字符串补成循环的字符串,至少需要多少补充多少字符,方法:kmp1234567891011121314151617181920212223242526272829303132333435363738394041424... 阅读全文

posted @ 2016-02-04 00:42 红洋 阅读(156) 评论(0) 推荐(0)

[2016-02-04][HDU][1711][Number Sequence]

摘要: 时间:2016-02-03 23:55:12 星期三题目编号:HDU 1711题目大意:给定两个序列,q1,q2,输出q2在q1的位置(第一个数字对应的位置,不存在输出-1)分析:kmp方法:kmp处理,p2完全匹配的时候返回解题过程遇到问题: next数组重定义,CENumber SequenceTime Limit: 5000MSMemory Limit: 32768KB64bit IO... 阅读全文

posted @ 2016-02-04 00:10 红洋 阅读(196) 评论(0) 推荐(0)

导航