| imesecan | Mar.07.2015 at 10:25:04 AM |  | 
| 0 | ---- Test Case 1 ---- 8 7 4 15 7  12  11  6  13  2
  ---- pattern ---- 47
 
  | 
| imesecan | Mar.07.2015 at 11:20:54 AM |  | 
| 1 | Pay attention that the result may exceed integer limits  (use long long)
 
  | 
| imesecan | Mar.07.2015 at 01:27:50 PM
 | 
| 2 | Сообщение скрыто
 
  | 
| imesecan | Mar.07.2015 at 01:40:56 PM |  | 
| 3 | --- Test Case 2 --- 12 8 6 4 8 9 12 4 0 7 3 0 10  4
  --- pattern --- 63
 
  |