摘要:
The Twin TowersTime Limit:2 Seconds Memory Limit:65536 KBTwin towers we see you standing tall, though a building's lost our faith will never fall.Twin towers the world hears your call, though you're gone it only strengthens our resolve.We couldn't make it through this without you Lord, t
阅读全文
posted @ 2014-03-03 19:01
ERKE
阅读(295)
推荐(0)
编辑
摘要:
1523. K-inversionsTime limit: 1.0 secondMemory limit: 64 MBConsider a permutationa1,a2, …,an(allaiare different integers in range from 1 ton). Let us callk-inversiona sequence of numbersi1,i2, …,iksuch that 1≤i1ai2>…>aik. Your task is to evaluate the number of differentk-inversions in a given
阅读全文
posted @ 2014-03-03 13:20
ERKE
阅读(328)
推荐(0)
编辑