Search found 2 matches

by shopnobaj
Mon Jun 27, 2011 5:44 pm
Forum: Volume 113 (11300-11399)
Topic: 11364 - Parking
Replies: 9
Views: 5479

what wrong with my code?? uva 11364

//uva 11364 #include<stdio.h> #include<math.h> #include<stdlib.h> #include<algorithm> #include<iostream> using namespace std; int main() { int num,slot_num,slot[100],i,sum,res,max,min; scanf("%d",&num); while(num--) { sum=0; res=0; max=-1; min=0; scanf("%d",&slot_num); for(i=1;i<=slot_num;i++) { sca...
by shopnobaj
Mon Jun 27, 2011 5:33 pm
Forum: Volume 113 (11300-11399)
Topic: 11364 - Parking
Replies: 9
Views: 5479

what wrong with my code?? uva 11364

//uva 11364 #include<stdio.h> #include<math.h> #include<stdlib.h> #include<algorithm> #include<iostream> using namespace std; int main() { int num,slot_num,slot[100],i,sum,res,max,min; scanf("%d",&num); while(num--) { sum=0; res=0; max=-1; min=0; scanf("%d",&slot_num); for(i=1;i<=slot_num;i++) { sca...

Go to advanced search