摘要:
Unimodal Palindromic DecompositionsTime Limit:2 Seconds Memory Limit:65536 KBA sequence of positive integers is Palindromic if it reads the same forward and backward. For example:23 11 15 1 37 37 1 15 11 231 1 2 3 4 7 7 10 7 7 4 3 2 1 1A Palindromic sequence is Unimodal Palindromic if the values do 阅读全文
posted @ 2013-04-08 16:44
贾树丙
阅读(671)
评论(0)
推荐(0)
摘要:
FatMouse and CheeseTime Limit:10 Seconds Memory Limit:32768 KBFatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 # includeusing namespace std;int map[105][105];int vis[105][105];int n,k;bool judge(int x, 阅读全文
posted @ 2013-04-08 15:09
贾树丙
阅读(317)
评论(0)
推荐(0)

浙公网安备 33010602011771号