摘要: 488. Dales and HillsTime limit per test: 0.5 second(s)Memory limit: 262144 kilobytesinput: standardoutput: standardLet's consider a number sequence a1, ·s, aN. We call the continuous subsequence ai, ·s, aj, ·s, ak (1 ≤ i at+1 for any j ≤ t at+1 for any i ≤ t #include #include #inc 阅读全文
posted @ 2014-03-12 16:18 _log__ 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 486. "Bulls and Cows"Time limit per test: 0.25 second(s)Memory limit: 262144 kilobytesinput: standardoutput: standardYou probably know the game "bulls and cows". Just in case, we explain the rules. The first player picks a four-digit number with all digits distinct (leading zero 阅读全文
posted @ 2014-03-12 15:57 _log__ 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 499. Greatest Greatest Common DivisorTime limit per test: 0.5 second(s)Memory limit: 262144 kilobytesinput: standardoutput: standardAndrew has just made a breakthrough in sociology: he realized how to predict whether two persons will be good friends or not. It turns out that each person has an inner 阅读全文
posted @ 2014-03-12 15:40 _log__ 阅读(446) 评论(0) 推荐(0) 编辑