Dave just get 300??? Owen gives 500 to him!
I have add the remainders to 'rec', but still WA
Any other problems???
Search found 2 matches
- Tue Jun 07, 2005 4:45 am
- Forum: Volume 1 (100-199)
- Topic: 119 - Greedy Gift Givers
- Replies: 145
- Views: 47351
- Sun Jun 05, 2005 11:02 am
- Forum: Volume 1 (100-199)
- Topic: 119 - Greedy Gift Givers
- Replies: 145
- Views: 47351
119 WA...Help
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int find_per(char *bas[], char *nam, int ran){
for(int i = 1; i <= ran; i++){
if(strcmp(bas[i], nam) == 0)
return i;
}
return 0;
}
int main(){
int num_per, rec[11], giv[11],
mon_hav, num_rec, mon_giv,
nth_per,
i, j;
char *nam[11 ...