Thursday, December 4, 2014

SPOJ 27. Sorting Bank Accounts (SBANK)

  Here is what simple things you can do to handle everything easily. Input the entire line as one string, obviously if one of those string is smaller than the other one it means that it should come earlier. Now, you can just sort the entire array using C++ sort which works very then easily check for the copies by comparing each one to the next and output the answer.


       FULL SOURCE CODE




No comments:

Post a Comment