All about problems in Volume CXXI. If there is a thread about your problem, please use it. If not, create one with its number in the subject.
Moderator: Board moderators
by uvasarker » Sun Jan 01, 2012 4:35 pm
Please, give me some critical test cases or please tell me where is wrong in my code. Here is my code:
- Code: Select all
#include <stdio.h>
int main()
{
int T,cas=0;
scanf("%d",&T);
while(T--)
{
int N,cal[3000];
scanf("%d",&N);
for(int I=0 ; I<N ; I++)
scanf("%d",&cal[I]);
long mile=0,juice=0;
for(int I=0 ; I<N ; I++)
{
[b]/* Very Simple just see below */[/b]
}
}
return 0;
}
Last edited by
uvasarker on Thu Jan 05, 2012 9:40 pm, edited 1 time in total.
-
uvasarker
- Learning poster
-
- Posts: 96
- Joined: Tue Jul 19, 2011 12:19 pm
- Location: Dhaka, Bangladesh
by leobonalume » Mon Jan 02, 2012 8:02 pm
uvasarker wrote:Please, give me some critical test cases or please tell me where is wrong in my code.
try this
Input
- Code: Select all
3
1
119
2
29 59
3
29 59 119
Output
- Code: Select all
Case 1: Juice 30
Case 2: Mile Juice 30
Case 3: Juice 60
-
leobonalume
- New poster
-
- Posts: 5
- Joined: Mon May 09, 2011 8:49 pm
by uvasarker » Wed Jan 04, 2012 9:32 am
Still WA............. please give me more critical test cases.
My modified code is:
- Code: Select all
Removed after AC. very simple just check the below test cases
Thanks a lot.
Thanks a lot "leobonalume" bro
Last edited by
uvasarker on Mon Dec 03, 2012 10:17 pm, edited 2 times in total.
-
uvasarker
- Learning poster
-
- Posts: 96
- Joined: Tue Jul 19, 2011 12:19 pm
- Location: Dhaka, Bangladesh
by leobonalume » Thu Jan 05, 2012 1:29 pm
uvasarker wrote:Still WA............. please give me more critical test cases.
You're failing at the inputs below.
input
- Code: Select all
12
2
60 65
3
100 30 29
2
29 60
4
30 60 120 120
1
60
2
60 30
6
29 30 59 60 119 120
13
150 30 10 10 20 60 29 30 43 39 1 23 54
5
10 20 30 40 50
5
10 31 29 30 59
30
30 29 30 29 30 29 30 29 30 29 59 60 59 60 59 60 59 60 59 60 119 120 119 120 119 120 119 120 119 120
4
60 10 10 10
output
- Code: Select all
Case 1: Mile Juice 60
Case 2: Juice 60
Case 3: Mile 40
Case 4: Juice 135
Case 5: Mile Juice 30
Case 6: Juice 45
Case 7: Juice 150
Case 8: Juice 240
Case 9: Juice 75
Case 10: Juice 75
Case 11: Juice 750
Case 12: Mile 60
-
leobonalume
- New poster
-
- Posts: 5
- Joined: Mon May 09, 2011 8:49 pm
Return to Volume CXXI
Who is online
Users browsing this forum: No registered users and 0 guests