Search found 127 matches

by Subeen
Sat Jul 13, 2002 11:36 pm
Forum: Volume 101 (10100-10199)
Topic: 10126 - Zipf's Law
Replies: 36
Views: 9047

10126 - Zipf's Law

why my program got W.A.? :-? help me plz... #include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> int sort_function( const void *a, const void *b); void main() { char z[10005][50]; char ara[50], temp[50]; int n, i, j, k, l, cs=0, len, flag; while(scanf("%d", &n)==1) { cs++; i...
by Subeen
Sat Jul 13, 2002 11:19 pm
Forum: Volume 3 (300-399)
Topic: 374 - Big Mod
Replies: 79
Views: 12513

Stefan... The following procedure computes a^c mod n as c is increased by doublings and incrementations from 0 to b. Modular_Exponentiation ( a, b, n ) { c = 0 d = 1 let {bk, bk-1, …, b0} be the binary representation of b for i = k downto 0 do c = 2 * c d = (d * d) mod n if bi = 1 then c = c +...
by Subeen
Sat Jul 13, 2002 10:40 pm
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 33027

the following code of mine also got W.A. :( can anyone find the bug??? :wink: #include <stdio.h> #include <string.h> char in[50]; void check() { char a1[] = {'A', 'E', 'H', 'I', 'J', 'L', 'M', 'O', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '5', '8'}; char a2[] = {'A', '3', 'H', 'I', 'L'...
by Subeen
Sat Jul 13, 2002 10:19 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 27086

in this problem words are consist of only consequtive alphabets(a-z, A-Z).

adc....asd 2 words

...as 1 word

as123adasd 2 words
by Subeen
Sat Jul 13, 2002 10:06 pm
Forum: Volume 1 (100-199)
Topic: 118 - Mutant Flatworld Explorers
Replies: 68
Views: 9692

118 Help!!!

I don't understand why my prog. got W.A. :(
Can someone help me with some inputs & outputs of this program?
by Subeen
Thu May 30, 2002 11:53 am
Forum: Volume 4 (400-499)
Topic: 444 - Encoder and Decoder
Replies: 155
Views: 22808

i had similar problem (R.E.) but when I increased the array size from 80 to 400 it got AC. gook luck :P
by Subeen
Tue May 21, 2002 6:13 am
Forum: Volume 3 (300-399)
Topic: 374 - Big Mod
Replies: 79
Views: 12513

there is a good and interesting algorithm for solving this problem.
u can find it in any good algorithms book.
check it out. :wink:
by Subeen
Mon May 20, 2002 7:42 am
Forum: C
Topic: Scan of input file ....
Replies: 14
Views: 11617

ya, no need for file in online judge. but in real time contests most of the times u will need to read from files and write in files. but don't worry. there are lots of ways with files. i know a good trick :wink: just do ur program without considering files. now attatch the following codes: [c]freope...
by Subeen
Mon May 20, 2002 7:00 am
Forum: Volume 3 (300-399)
Topic: 311 - Packets
Replies: 29
Views: 17182

what is ur output for input:

10 10 10 10 10 10
5000 1400 300 200 100 100

plz write the outputs. :o
by Subeen
Tue Apr 23, 2002 6:44 pm
Forum: Volume 4 (400-499)
Topic: 465 - Overflow
Replies: 104
Views: 24820

sorry :( surely it is 4 byte.
but this prog. still gives me a lot of trouble.
plz help.
thankx.
by Subeen
Sat Apr 06, 2002 4:36 pm
Forum: Volume 4 (400-499)
Topic: 465 - Overflow
Replies: 104
Views: 24820

i used 4 bit int. still W.A.
i need some inputs and outputs.
by Subeen
Thu Apr 04, 2002 7:03 am
Forum: Volume 102 (10200-10299)
Topic: 10246 - Asterix and Obelix
Replies: 29
Views: 9799

10246

this prog. got W.A. why? help!

code removed
by Subeen
Sat Mar 30, 2002 8:49 am
Forum: Volume 4 (400-499)
Topic: 465 - Overflow
Replies: 104
Views: 24820

stefan, my program gives same output, but why does it get W.A.???
by Subeen
Fri Mar 29, 2002 4:55 pm
Forum: Volume 6 (600-699)
Topic: 630 - Anagrams (II)
Replies: 25
Views: 6574

630 - Anagrams (II)

i can't find why my prog. got W.A. pls help me. /* @JUDGE_ID: 13487FC 630 C++ */ #include <stdio.h> #include <string.h> #include <stdlib.h> int sort_fun(const void *a,const void*b) { return( strcmp((char *)a,(char *)b) ); } void main() { char dic[1000][20]; char temp[1000][20]; char test[20], in[10]...
by Subeen
Fri Mar 29, 2002 4:35 pm
Forum: Volume 7 (700-799)
Topic: 776 - Monkeys in a Regular Forest
Replies: 51
Views: 18849

776 - Monkeys in a Regular Forest

i tried to solve the prob. using dfs. but got W.A. can u pls help me?

Code: Select all

removed
(problem is in taking input)

Go to advanced search