摘要: Vova had a pretty weird sleeping schedule. There are hh hours in a day. Vova will sleep exactly nn times. The ii-th time he will sleep exactly after a 阅读全文
posted @ 2020-03-14 23:16 Vetsama 阅读(402) 评论(0) 推荐(0)
摘要: The next lecture in a high school requires two topics to be discussed. The ii-th topic is interesting by aiaiunits for the teacher and by bibi units f 阅读全文
posted @ 2020-03-14 23:09 Vetsama 阅读(383) 评论(0) 推荐(0)
摘要: There is a frog staying to the left of the string s=s1s2…sns=s1s2…sn consisting of nn characters (to be more precise, the frog initially stays at the 阅读全文
posted @ 2020-03-14 22:57 Vetsama 阅读(362) 评论(0) 推荐(0)
摘要: You are given an array aa consisting of nn integers. Your task is to determine if aa has some subsequence of length at least 33 that is a palindrome. 阅读全文
posted @ 2020-03-14 22:56 Vetsama 阅读(196) 评论(0) 推荐(0)
摘要: You are given some Tetris field consisting of nn columns. The initial height of the ii-th column of the field is aiai blocks. On top of these columns 阅读全文
posted @ 2020-03-14 22:52 Vetsama 阅读(276) 评论(0) 推荐(0)