ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1100. Final Standings

CRASH test 3
Posted by kobra 11 Jul 2008 17:28
#include <iostream>

using namespace std;


long int dani[101][150001];
int about[101];

int main()
{
    int N;
    long int team;
    int tasks;

    cin>>N;
    for(int i=0;i<=100;i++)
        about[i]=0;
    for(int i=0;i<N;i++)
    {
        cin>>team>>tasks;
        dani[tasks][about[tasks]]=team;
        about[tasks]++;
    }
    for(int i=N;i>=0;i--)
    {
        for(int j=0;j<about[i];j++)
        {
            cout<<dani[i][j]<<" "<<i<<endl;
        }
    }
    return 0;
}
i can not understand what the problem... array is big enough for this task