摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文