kinezizbosne2013-03-05 10:28:12Can someone give me idea for solving this task:http://z-trening.com/tasks.php?show_task=5000000444
demjan00012013-03-08 13:11:36Offline idea:Sort all names with their positions.And for i-th element in sorted array find how many elements before it has position smaller than it's.Online idea:Use Trie with some dynamic programming...