Search found 19 matches

by sms.islam
Thu Dec 02, 2010 1:13 am
Forum: Volume 109 (10900-10999)
Topic: 10945 - Mother bear
Replies: 65
Views: 16859

Re: 10945 - Mother Bear

please help!!! why i am getting WA........ [c] #include<stdio.h> #include<string.h> #include<ctype.h> #define max 50001 char ch[max], str[max] , str1[max] , ch1[max]; void RESULT() { int ptr = 0 ; ptr = strcmp(str1,str); if(ptr == 0 ) printf("You won't be eaten!"); else printf("Uh oh.."); } int main...
by sms.islam
Mon Nov 29, 2010 6:00 pm
Forum: Volume 111 (11100-11199)
Topic: 11150 - Cola
Replies: 43
Views: 22757

Re: 11150 - Cola

i have found out a connection.And it is working.if anyone solved uva online judge problem 11877.then just add the result with the corrosponding value of n then it will be ok.............................. :D

problem solving is really fun........
by sms.islam
Wed Sep 29, 2010 4:52 pm
Forum: Volume 118 (11800-11899)
Topic: 11830 - Contract Revision
Replies: 20
Views: 4777

Re: Contract revision_11830

Thanks.............finally i got AC...........thats a great feelings isn't it?
by sms.islam
Mon Sep 27, 2010 2:31 pm
Forum: Volume 118 (11800-11899)
Topic: 11830 - Contract Revision
Replies: 20
Views: 4777

Re: Contract revision_11830

[]
point taken.i missed it.It will be

7 777------------>1

now please help me through it
[]
by sms.islam
Sat Sep 25, 2010 6:17 pm
Forum: Volume 118 (11800-11899)
Topic: 11830 - Contract Revision
Replies: 20
Views: 4777

11830 - Contract Revision

i got wa several times. my input output is given below....................please give me some critical input and output. 5 5000000 3 123456 9 23454324543423 9 99999999991999999 7 777 1 1000002 1 10000203 5 5000000000000000000000000000000000000041 5 1051 .................................................
by sms.islam
Thu Nov 12, 2009 9:13 am
Forum: Volume 114 (11400-11499)
Topic: 11455 - Behold my quadrangle
Replies: 21
Views: 11049

Re: 11455 - Behold My Quadrangle

"It is possible to make an quadrangle when sum of its 3 side is equal to other side. when it is sorted"

so how it will be quadrangle

10 8 7 6

please explain.
by sms.islam
Tue Nov 10, 2009 5:42 pm
Forum: Volume 105 (10500-10599)
Topic: 10533 - Digit Primes
Replies: 108
Views: 31767

Re: 10533 - Digit Primes

i am getting TLE for this problem. i use this function to check prime number. [c] long prime_count(long x) { long i; if(x==1) return 0; else if(x==2) return 1; else if(x%2==0) return 0; for ( i = 3 ; i*i <= x ; i+=2) { if(x%i==0) return 0; } return 1; } [c] to count the sum of prime number digit i u...
by sms.islam
Tue Nov 10, 2009 5:08 pm
Forum: Volume 116 (11600-11699)
Topic: 11677 - Alarm Clock
Replies: 18
Views: 4554

11677 - Alarm Clock

Help me!
i am getting wrong answer for that problem.Dont know why?
Can any one give me some critical input?
by sms.islam
Tue Nov 10, 2009 5:05 pm
Forum: Volume 117 (11700-11799)
Topic: 11715 - Car
Replies: 14
Views: 4632

Re: 11715 : Car problem

// Code removed cause Accepted

thanx naseefcuet i got it.
by sms.islam
Thu Nov 05, 2009 2:57 pm
Forum: Volume 117 (11700-11799)
Topic: 11715 - Car
Replies: 14
Views: 4632

11715 - Car

I have got WA for this problem.Is there any trick with that problem? can anyone please send some spical input for this problem? my algorithom() { while(scanf("%ld",&n)!=EOF) { if(n==1) { print desired result; } else if(n==1) { print desired result; } else if(n==1) { print desired result; } ............
by sms.islam
Tue Nov 03, 2009 4:07 pm
Forum: Volume 114 (11400-11499)
Topic: 11462 - Age Sort
Replies: 49
Views: 18280

Re: 11462 - Ages Sort

"For each case, print a line with n space separated integers"
whats that means? How many space ?
by sms.islam
Tue Oct 27, 2009 4:16 pm
Forum: Volume 115 (11500-11599)
Topic: 11547 - Automatic Answer
Replies: 15
Views: 2746

Re: 11547 Not understand the algorithm

Read the problem description carefully.

After getting re=12345678 (imagine)
you have to show 7

more:
98745>4
2587416>1

hope it helps.
by sms.islam
Sun Oct 18, 2009 12:02 pm
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 32366

Re: 10323 - Factorial! You Must be Kidding!!!

i got it!!! just precalculate the factorial.....oops its easy!!!
by sms.islam
Sat Oct 17, 2009 11:18 am
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 32366

Re: 10323 - Factorial! You Must be Kidding!!!

code removed.After accepted!!!
by sms.islam
Fri Oct 16, 2009 4:55 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 39226

Re: 10424 - Love Calculator

i have got accepted!!!!!!! my code is not working for
z
z
..............

got this point.
thanx

Go to advanced search