Search found 106 matches

by Raiyan Kamal
Wed Sep 21, 2005 3:46 pm
Forum: Volume 4 (400-499)
Topic: 403 - Postscript
Replies: 28
Views: 3785

You get "Access Denied" when you dont post your solution from the address you speciefied in your registration form. There is an option in your settings that says you will always submit from the specified host, i.e. the email address you have given here when registering in the uva.es. Change that opt...
by Raiyan Kamal
Wed Sep 21, 2005 3:31 pm
Forum: Volume 101 (10100-10199)
Topic: 10130 - SuperSale
Replies: 76
Views: 23041

Please write some lines on your algorithm. Its hard to understand anything from you code. I have tested your code with some input-output and it seemed OK. So there might be some critical case where your code fails and we need to know about the algo you are using to figure that out. I tried to unders...
by Raiyan Kamal
Mon Sep 05, 2005 2:56 pm
Forum: Volume 100 (10000-10099)
Topic: 10009 - All Roads Lead Where?
Replies: 60
Views: 14911

I took your source code and compiled in my computer. First, i tested with the following case. 1 7 3 Rome Turin Turin Venice Turin Genoa Rome Pisa Pisa Florence Venice Athens Turin Milan Turin Pisa Milan Florence Athens Genoa Your program prints a blank line as the output. I tried some more. 4 7 3 Ro...
by Raiyan Kamal
Mon Sep 05, 2005 2:27 pm
Forum: Volume 103 (10300-10399)
Topic: 10301 - Rings and Glue
Replies: 50
Views: 16519

For two identical circles, you have to count both of them. In general, if there are N identical circles, you have to consider all N of them connected.
by Raiyan Kamal
Mon Sep 05, 2005 2:20 pm
Forum: Volume 103 (10300-10399)
Topic: 10301 - Rings and Glue
Replies: 50
Views: 16519

Precision error is not a problem here. I got AC simply using >= and <=.
by Raiyan Kamal
Thu Aug 25, 2005 10:58 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 59373

Kakashi, Your modification can still fail if input is like this: 0000 0000 Your program is supposed to stop at this point. So take care of this case. I think tan_Yui's test cases are good. if you still get WA, then I would suggest you to rewrite the whole thing and using long long this time instead ...
by Raiyan Kamal
Mon Aug 22, 2005 6:43 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 59373

Dear Kakashi,
your program fails for the following input set.

Code: Select all

9999 9999
0099 0099
99 99
123 987
0 0
by Raiyan Kamal
Sat Aug 20, 2005 7:36 am
Forum: Volume 100 (10000-10099)
Topic: 10015 - Joseph's Cousin
Replies: 23
Views: 5173

I have used array version of linked list. In an array a, for every i, a is the index of the next element. I initialize the array with, a =i+1 for all 1<=i < n AND a[n]=1. Then I run the simulation. I count the steps and when my step count is equal to the current prime, i delete a node from the list....
by Raiyan Kamal
Wed Aug 17, 2005 4:33 pm
Forum: Volume 2 (200-299)
Topic: 263 - Number Chains
Replies: 45
Views: 8178

The given number is not consiedered as a member of the chain.
by Raiyan Kamal
Fri Aug 05, 2005 4:25 pm
Forum: Volume 107 (10700-10799)
Topic: 10719 - Quotient Polynomial
Replies: 51
Views: 17459

to Zuberul vai, i can show you an way easier than the easiest way you have shown. See the piece of code bellow. to Soumit vai ( and also Sanny vai) , why on earth do we need to use strtok and other sophisticated things when we can do it using getchar() !!!?? while(c=getchar()) { if((isdigit(c) || (c...
by Raiyan Kamal
Sun Jul 31, 2005 3:02 pm
Forum: Volume 108 (10800-10899)
Topic: 10854 - Number of Paths
Replies: 25
Views: 9266

Thanks to mf for the test cases.
by Raiyan Kamal
Sat Jul 30, 2005 12:06 pm
Forum: Volume 4 (400-499)
Topic: 416 - LED Test
Replies: 34
Views: 10155

Thats one of the specialities of being a Notre Damian. Thanks again. Hope to meet you again soon.
by Raiyan Kamal
Fri Jul 29, 2005 6:57 pm
Forum: General
Topic: ! this is for volume CI
Replies: 1
Views: 1490

You are supposed to post this in the Volume CI section.

Please post it in the appropriate place and try to explain your logic. Why are you taking the last two digits from the floor and ceiling of a/n ??
by Raiyan Kamal
Fri Jul 29, 2005 6:13 pm
Forum: Volume 107 (10700-10799)
Topic: 10773 - Back to Intermediate Math
Replies: 41
Views: 17223

First line of the input contains an integer N , the number of test cases. Next N lines have 3 real numbers each. So you are supposed to use something like

Code: Select all

for(i=1;i<=N;i++)
{}
No wonder why you get WA using while(cin>>N)
by Raiyan Kamal
Thu Jul 28, 2005 4:58 am
Forum: Volume 4 (400-499)
Topic: 416 - LED Test
Replies: 34
Views: 10155

:oops: My mistake! I apologize. I have corrected the sample input in my previous post. Thanks to Jan for pointin out the error. I had to write 6 on the third line of input, but by mistake wrote something that looks like 1 in bangla ! Here are some more test cases. INPUT : 4 YYYYYNN YYYNNNN YNYYYNN Y...

Go to advanced search