|
|
вернуться в форумCRASH test 3 Послано kobra 11 июл 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 |
|
|