原创 SDUT 2886 Weighted Median

Weighted Median                    Time Limit:2000MS     Memory Limit:65536KB     64bit IO Format:%lld & %lluDescriptio

原创 POJ 1007 DNA Sorting 多個數組代替結構體

DNA SortingTime Limit: 1 Sec  Memory Limit: 64 MBSubmit: 327  Solved: 140[Submit][Status][Discuss]DescriptionOne measur

原创 HDU 3951 Coin Game

                                                Coin Game                Time Limit:1000MS    Memory Limit:32768KB    6

原创 HDU 1798 Tell me the area

 Tell me the area                        Time Limit:1000MS    Memory Limit:32768KB    64bit IO Format:%I64d & %I64uDesc

原创 SDIBT 2322 Sorting a Three-Valued Sequence

Sorting a Three-Valued Sequence                            Time Limit:1000MS     Memory Limit:65536KB     64bit IO Form

原创 Codefroces194A Exams

H - ExamsTime Limit:2000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces

原创 POJ 2393 Yogurt factory

Yogurt factoryTime Limit:1000MS    Memory Limit:65536KB    64bit IO Format:%I64d & %I64u Description The cows have pur

原创 KMP經典超簡約模板

形象淺顯的解釋如何及爲何應用KMP算法:傳送門#include<stdio.h> #include<string.h> char small[10009],big[1000009]; int check[10009]; i

原创 CodeForces 939A(水題)

DescriptionAs you could know there are no male planes nor female planes. However, each plane on Earth likes some other

原创 日常錯誤

第二屆南曉程序設計競賽新年賽-外網dalao狂歡     個人總結 問題 A: 集訓隊日常之JBB的煩惱 時間限制: 1 Sec  內存限制: 32 MB 提交: 402  解決: 235 [提交][狀態][討論] 題目描

原创 Counting-out Rhyme 約瑟夫環

                                                                Counting-out Rhyme                Time Limit:1000MS    

原创 Adding Reversed Numbers 數的反轉

Adding Reversed NumbersTime Limit: 1 Sec  Memory Limit: 64 MBSubmit: 300  Solved: 143[Submit][Status][Discuss]Descripti

原创 CF Playing With Strings

    I. Playing With Stringstime limit per test    2.0 smemory limit per test    64 MBstandard outputDani and Mike are

原创 經典博弈集合題解

一、威佐夫博弈有兩堆石子,數量任意,可以不同。遊戲開始由兩個人輪流取石子。遊戲規定,每次有兩種不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在兩堆中同時取走相同數量的石子。最後把石子全部取完者爲勝者。現在給出初始的兩堆石子的

原创 SDUT 3275 LCM的個數

LCM的個數                            Time Limit:1000MS    Memory Limit:65536KB    64bit IO Format:%lld & %lluDescription 對