## Search found 10 matches

Thu Oct 08, 2009 1:43 am
Forum: Volume 110 (11000-11099)
Topic: 11096 - Nails
Replies: 28
Views: 14733

### Re: 11096 - Nails

i got RTE. can anyone tell me whats the problem ?

Code: Select all

``````removed afted AC
``````
Wed Mar 05, 2008 9:26 am
Forum: Volume 108 (10800-10899)
Topic: 10814 - Simplifying Fractions
Replies: 30
Views: 16944
hi,
u should read D problem description carefully it says 10^30 which can't b express using even long long u need 2 use BigInt
Mon Mar 03, 2008 3:53 pm
Forum: Volume 100 (10000-10099)
Topic: 10055 - Hashmat the Brave Warrior
Replies: 166
Views: 48249
vice versa x<y or x>y is possible
so D result = greater num - smaller num
&& use long long
Mon Mar 03, 2008 3:46 pm
Forum: Volume 3 (300-399)
Topic: 382 - Perfection
Replies: 95
Views: 20647
if n==1 then it is deficient

&&

in D input() scanf(); use %ld instead %d

HOPE THIS HELP
Sun Mar 02, 2008 10:13 am
Forum: Volume 2 (200-299)
Topic: 272 - TEX Quotes
Replies: 136
Views: 37643
hi obaida,
initialize n=0 at d time of declaration

&&

use if(x==34&&s==1 )

HOPE THIS HELP
Sat Mar 01, 2008 9:52 am
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 33967
hi,
Obaida, helloneo trace out ur error u print a extra new line in d front

use if(l>= 1 &&l<n)
will do ur work

&&

u don't need 2 take test case more than once

HOPE THIS HELPS
Sat Mar 01, 2008 9:34 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 193806
hi,

use return 0; instead return 1;

&&

sample input
10 20
20 10
sample output
10 20 21
20 10 21
HOPE THIS HELPS
Sat Mar 01, 2008 8:26 am
Forum: Volume 1 (100-199)
Topic: 160 - Factors and Factorials
Replies: 205
Views: 26857
sample input 53 0 Sample output 53! = 49 23 12 8 4 4 3 2 2 1 1 1 1 1 1 ******1 Ur output 53! = 49 23 12 8 4 4 3 2 2 1 1 1 1 1 1 **1 use 6 space instead of 1 in d second line and increase array size to 102 for safety & print "\n" just after printing output. HOPE THIS HELPS :D
Tue Feb 26, 2008 9:53 am
Forum: Volume 3 (300-399)
Topic: 389 - Basically Speaking
Replies: 94
Views: 23378
hi,
increase num nnum array size & initialize inum to 0 just after input
doing that i got ur code ac

hope this help
Mon Feb 25, 2008 8:26 pm
Forum: Volume 113 (11300-11399)
Topic: 11398 - The Base-1 Number System
Replies: 23
Views: 9829
sample input

0 0000 00 000 0 0000 #
0 0000
00 000 0 0000 #
~

output
27
27

hope this helps