an accounting program using avl tree, segment tree, tri tree and hash table
input test: 21 1 mohsen hamid 5.50 1 hamid mohsen 5.50 1 ali mohsen 15.50 1 mohsen ali 15.50 1 ali reza 10.00 6 reza ali 1 reza ali 30.00 1 ali reza 40.00 6 reza ali 2 3 4 ali 5 ali 6 ali reza 1 reza ali 21.00 2 3 1 ali reza 1.00 2 3 6 ali reza
test output: 10.00 20.00 reza ali 0 1 -20.00 ali reza -1 -1 0.00