Search found 127 matches

by Subeen
Fri Apr 04, 2003 5:00 pm
Forum: Volume 103 (10300-10399)
Topic: 10354 - Avoiding Your Boss
Replies: 47
Views: 21366

i am getting WA. what i tried to do:... 1. using dijkstra find the shortest path cost from home(yh) to market(m) 2. using dijkstra find all shortest paths from boss's home to office and delete the nodes from the graph. 3. now again using dijkstra find the shortest path cost from home(yh) to market(m...
by Subeen
Thu Mar 27, 2003 8:02 pm
Forum: Off topic (General chit-chat)
Topic: ***!!! PLEASE STOP IT !!!***
Replies: 12
Views: 5837

does BUSH/US have right to attack IRAQ? :evil: who is the terrorist? :evil: and the terrorist striked against terror!!! :-? and now the terrorist is killing people for the safety of the world?!?! :D they killed people in Japan during 2nd World War for the safety of the world!? :D they killed people ...
by Subeen
Wed Mar 19, 2003 7:03 pm
Forum: Volume 5 (500-599)
Topic: 514 - Rails
Replies: 79
Views: 24482

I got WA too. don't understand why... help me please :( here i give my code: [c] #include <stdio.h> int ara[1001]; int top, N; void push(int n) { ara[++top] = n; } int pop() { return ara[top--]; } void main() { int ara1[1001], ara2[1001]; int i, j, n1, n2, f = 0; while(1==scanf("%d", &N) && N) { if(...
by Subeen
Tue Mar 18, 2003 6:48 pm
Forum: Volume 7 (700-799)
Topic: 750 - 8 Queens Chess Problem
Replies: 78
Views: 26407

i used backtracking but got WA. cann't find the bug. help me plz. :oops:
( i removed the code after finding bug... if someone need help about this than let me know...:-)
by Subeen
Tue Mar 04, 2003 1:24 pm
Forum: Algorithms
Topic: MST !!!
Replies: 6
Views: 5416

an easy problem that can be solved by MST is 10034.

there is two famous algorithm: 1. Kruskal, 2. Prim.
u can solve the problem using any one. (i tried prim)
it's easy, so u should code it by urself :)

and follow intro. to algo. (CLTR) for the algorithm or any other algo. book.
by Subeen
Tue Feb 04, 2003 9:24 am
Forum: Other words
Topic: acm solve sites
Replies: 51
Views: 25920

finally the truth wins :lol:
by Subeen
Mon Dec 30, 2002 3:54 pm
Forum: Other words
Topic: Happy New Year to everyone!!!
Replies: 6
Views: 1402

happy 2k3

subeen wishes a very happy new year to all the problem-setters, problem-solvers and the great people who maintain the wonderful site!

hope all will do better in 2003 :lol:
by Subeen
Sat Dec 14, 2002 2:27 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 25298

yes, it is.
by Subeen
Sun Nov 24, 2002 7:14 pm
Forum: Volume 4 (400-499)
Topic: 492 - Pig-Latin
Replies: 213
Views: 25298

don't use gets, use scanf() instead. (c my post above ur's)...good luck
by Subeen
Tue Nov 19, 2002 10:01 am
Forum: Volume 103 (10300-10399)
Topic: 10393 - The One-Handed Typist
Replies: 40
Views: 10901

10393 - The One-Handed Typist

easy problem... but got WA :cry: and can't find the bug. someone help me plz... here is my code: [cpp] #include <stdio.h> #include <stdlib.h> #include <string.h> int sort_function( const void *a, const void *b) { return( strcmp((char *)a,(char *)b) ); } void main() { char *ara[] = {"", "qaz", "wsx",...
by Subeen
Sat Sep 28, 2002 1:06 pm
Forum: Other words
Topic: ( to Judge ) Flooding the server
Replies: 6
Views: 2761

i just got the ans after submitting a problem 2 hrs ago... it's very disgusting and i also noticed that someone is submitting problem no. 414 one after another... so proper actions should be taken. :o and i have to tell something more... that the secuirity of this site is very poor. two weeks ago on...
by Subeen
Thu Sep 26, 2002 7:14 pm
Forum: Volume 1 (100-199)
Topic: 118 - Mutant Flatworld Explorers
Replies: 68
Views: 9124

thanks

thanks for help :lol: i got it AC
by Subeen
Sun Sep 22, 2002 6:48 pm
Forum: Volume 1 (100-199)
Topic: 118 - Mutant Flatworld Explorers
Replies: 68
Views: 9124

WA

my code is here:

[c]
code removed
[/c]
by Subeen
Sun Sep 22, 2002 6:33 pm
Forum: Volume 101 (10100-10199)
Topic: 10179 - Irreducible Basic Fractions
Replies: 28
Views: 9683

worng ans!!!

i used euler's phi function too, but i got W.A. :cry:
someone plz see what is wrong with my solution?
[c] code removed
[/c]
thankx got AC
by Subeen
Wed Sep 11, 2002 7:31 am
Forum: Volume 103 (10300-10399)
Topic: 10320 - Cow Trouble! Help Please!!
Replies: 27
Views: 9934

Yarin, I don't understand what do u mean by
Your solution only works when R<=l+w. This is the easy case, it gets a lot more complicated when R >l+w.
after some modification ( area2 = area3 = 0) my program gives the same output as your's.

but still getting WA... :(

Go to advanced search