Search found 66 matches

by shuvokr
Thu Aug 29, 2013 12:26 am
Forum: Volume 5 (500-599)
Topic: 562 - Dividing coins
Replies: 73
Views: 30182

Re: 562 - Dividing Coins

Thanks brianfry713... :)

Code: Select all

cut...
by shuvokr
Sun Aug 25, 2013 9:43 pm
Forum: Volume 3 (300-399)
Topic: 315 - Network
Replies: 68
Views: 21612

Re: 315 Network

Whats problem in my code, i got wa, help anyone. I just get the graph then find out the articulation point, if my algorithm is ok then for which input my code failed else whats the algorithm of this problem. My code //Templet start #include <stdio.h> #include <stdlib.h> #include <string.h> #include ...
by shuvokr
Wed Jul 31, 2013 2:10 pm
Forum: Volume 101 (10100-10199)
Topic: 10191 - Longest Nap
Replies: 75
Views: 23603

Re: 10191 Wrong Answer-but it always outputs correctly.

Code: Select all

Code Accepted.......
by shuvokr
Thu Jul 25, 2013 12:12 am
Forum: Volume 5 (500-599)
Topic: 532 - Dungeon Master
Replies: 39
Views: 10035

Re: 532

May be for this problem there is no input which result is "Escaped in 1 minute(s)." because my ac code for result 1 print "Escaped in 1 minute."
by shuvokr
Wed Jul 24, 2013 3:10 pm
Forum: Volume 5 (500-599)
Topic: 532 - Dungeon Master
Replies: 39
Views: 10035

Re: 532

emma042 cheak this input

Code: Select all

3 4 5
SE...
.###.
.##..
###.#

#####
#####
##.##
##...

#####
#####
#.###
#####

0 0 0
Out should be

Code: Select all

Escaped in 1 minute.
by shuvokr
Tue Jul 23, 2013 6:27 pm
Forum: Volume 5 (500-599)
Topic: 544 - Heavy Cargo
Replies: 32
Views: 14541

Re: 544 - heavy cargo

I don't understand why i get WA again and again, need help My code //Templet start #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include <string> #include <iostream> #include <sstream> #include <vector> #include <queue> #include <stack> #include <ma...
by shuvokr
Mon Jul 22, 2013 1:29 am
Forum: Volume 119 (11900-11999)
Topic: 11953 - Battleships
Replies: 23
Views: 6316

Re: 11953 - Battleships

because when you write int r = x + ar [0]; int c = x + ar [1]; here y have no change. As a result if (x == (grid.length - 1) || y == (grid.length - 1) || x == 0 || y == 0 || grid[x][y] == '.') this line y == (grid.length - 1) and y == 0 condition don't work any time and for this cause you got TLE, A...
by shuvokr
Mon Jul 22, 2013 1:05 am
Forum: Volume 119 (11900-11999)
Topic: 11953 - Battleships
Replies: 23
Views: 6316

Re: 11953 - Battleships

faraa in your DFS funcyion for (int i = 0; i < ar.length; i++) { int r = x + ar[i][0]; int c = x + ar[i][1]; dfs(r, c); } It's should be for (int i = 0; i < ar.length; i++) { int r = x + ar[i][0]; int c = y + ar[i][1]; dfs(r, c); } Am i right ? :)
by shuvokr
Sun Jul 21, 2013 5:30 pm
Forum: Volume 103 (10300-10399)
Topic: 10374 - Election
Replies: 44
Views: 15098

Re: uva 10374

Munna your code give the wrong answer for this kind of kag
Sample input:

Code: Select all

1

3
Marilyn Manson
Rhinoceros
Jane Doe
Family Coalition
John Smith
independent
6
John Smith
Marilyn Manson
Marilyn Manson
Jane Doe
John Smith
Jane Doe
The output should be

Code: Select all

tie
:D
by shuvokr
Sun Jul 21, 2013 3:47 pm
Forum: Volume 103 (10300-10399)
Topic: 10374 - Election
Replies: 44
Views: 15098

Re: uva 10374

The input begins with a single positive integer on a line by itself indicating the number of the cases following, each of them as described below. This line is followed by a blank line, and there is also a blank line between two consecutive inputs. For each test case, the output must follow the des...
by shuvokr
Wed Jul 17, 2013 3:49 am
Forum: Volume 104 (10400-10499)
Topic: 10420 - List of Conquests
Replies: 68
Views: 26105

Re: 10420 - List of Conquests

Code: Select all

Accepted...
by shuvokr
Wed Jul 17, 2013 2:37 am
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 17460

Re: 369 / 530 : Combinations : WAs all the way,Please Help

For this problem who got WA

You may assume that the final value of C will fit in a 32-bit Pascal LongInt or a C long.

:P
by shuvokr
Sun Jun 30, 2013 1:57 pm
Forum: Volume 116 (11600-11699)
Topic: 11624 - Fire!
Replies: 54
Views: 14636

Re: 11624 - Fire!

Code: Select all

Accepted  :D 
by shuvokr
Sat Jun 29, 2013 9:41 pm
Forum: Volume 116 (11600-11699)
Topic: 11624 - Fire!
Replies: 54
Views: 14636

Re: 11624 - Fire!

Thanks brianfry713
by shuvokr
Sat Jun 29, 2013 2:18 am
Forum: Volume 116 (11600-11699)
Topic: 11624 - Fire!
Replies: 54
Views: 14636

Re: 11624 - Fire!

match...

Go to advanced search