TopCoder, SRM 594
TopCoder SRM 596, bug in 500
TopCoder SRM 596, fix bug in 500 - long long issues