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 1581. Teamwork

what is test 4 ? my code here:
Posted by Tom 6 Aug 2011 23:21
it gives good output for every test i came up with...
i dont know where is the mistake and code is very simple
help pls



#include <iostream>

using namespace std;

int main(){

    int n,i;
    int* tab;
    int tabL[11]={0};
    cin >> n;
    tab = new int [n];
    for(i=0;i<n;i++){
            cin >> tab[i];
            tabL[tab[i]]++;
            }
    for(i=0;i<11;i++){
             if(tabL[i]!=0){
                    cout << tabL[i] << " " << i << " ";
                    }
             }
    getchar();getchar();
    return 0;

}
Re: what is test 4 ? my code here:
Posted by Zura Isakadze [Tbilisi SU] 1 May 2012 13:53
reread the statement