0

How I solved the problem A and try B,C

 5 months ago
source link: http://codeforces.com/blog/entry/103
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

By Salat, 12 years ago, translation,

Google translate:
Problem А. STL + little brain.
  • map<string,int> M_pair; // data in put M_pair; 
  • map<string,vector<pair<int,int> > > M_step; // step of player; 
  • vector<pair<int,string> > Res; // first - result game, second name of player ; 
  • sort(Res.being(),Res.end(),predicat); // created the predicate for which there is a sort Res, players; 
  • predicat //if you win the same, then look at M_step chronology of events when a player has earned the first time, the amount m;
Problem В. no opinion((
first suggested to avoid the numbers 2,5,10 ie those who create the zeros, but seeing the test realized that
is not correct.
Problem С. I understand it correctly???
The three circles on the field and need to find a point equidistant from the three circles?
view:
Even though I solved the problem A two hours, I liked the process =) Please help me!)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK