Search found 3 matches

by beginner
Sat Oct 27, 2007 5:00 pm
Forum: Volume 112 (11200-11299)
Topic: 11204 - Musical instruments
Replies: 12
Views: 6381

Hi Jan,

yes you're right. thanks for point that out.
I've got AC finally.... I need to practice more since i even didn't realize that simple mistake. thanks for your help :D
by beginner
Fri Oct 26, 2007 5:36 am
Forum: Volume 112 (11200-11299)
Topic: 11204 - Musical instruments
Replies: 12
Views: 6381

Below is my code. Thanks for checking it


#include<iostream>
#include<string.h>

using namespace std;

int main(){
int nout,ninst,nstu,p;
int count[100];

cin>>nout;
for(int i=0;i<nout;i++){
cin>>ninst>>nstu;
memset(count,0,sizeof(count));
for(int j=0;j<nstu;j++){
for(int k=0;k<ninst;k ...
by beginner
Thu Oct 25, 2007 9:02 pm
Forum: Volume 112 (11200-11299)
Topic: 11204 - Musical instruments
Replies: 12
Views: 6381

I keep getting WA, is there anyone that can help me ?
Basically my algorithm is count the number of students that have the same favorite instruments and then count the total of combination among the students.
For example in the third case there are 2 students for 3rd instrument and 2 students for ...

Go to advanced search