Search found 64 matches

by arifcsecu
Sat Oct 17, 2009 3:30 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 39223

Re: 10424 - Love Calculator

sms.islam wrote:i have got accepted!!!!!!! my code is not working for
z
z
..............

got this point.
thanx
remove ur code if u got accepted
by arifcsecu
Sat Oct 17, 2009 3:18 pm
Forum: Volume 116 (11600-11699)
Topic: 11686 - Pick up sticks
Replies: 44
Views: 10560

Re: 11686 How can

removed
by arifcsecu
Thu Oct 15, 2009 7:50 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 79252

Re: 10038 - Jolly Jumpers

try to use build in qsort algorithm

hope it helps
by arifcsecu
Thu Oct 15, 2009 7:38 pm
Forum: Volume 104 (10400-10499)
Topic: 10424 - Love Calculator
Replies: 137
Views: 39223

Re: 10424 - Love Calculator

Try to
digit2 greater than digit1

and digit2 and digit must less than 10
by arifcsecu
Thu Oct 15, 2009 7:25 pm
Forum: Volume 116 (11600-11699)
Topic: 11686 - Pick up sticks
Replies: 44
Views: 10560

Re: 11686 - Pick up sticks - possible in Java?

why not
it is possible in java
This is topological sorting

use dfs
Just use an array for color[]
and use a stack for the topological order of vertices
and use vector for reading graph input instead of 2D array

Hope it helps
by arifcsecu
Thu Oct 15, 2009 7:21 pm
Forum: Volume 116 (11600-11699)
Topic: 11636 - Hello World!
Replies: 30
Views: 6416

Re: 11636 wrong answer. Pls help

Don't try to create new thread if one exit for a problem
one thread exist for 11636
by arifcsecu
Thu Oct 15, 2009 6:58 pm
Forum: Volume 116 (11600-11699)
Topic: 11686 - Pick up sticks
Replies: 44
Views: 10560

Re: 11686 How can

code removed
by arifcsecu
Wed Oct 14, 2009 8:33 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 183065

Re: If you get WA in problem 100, read me before post!

Ok sorry, some bugs... but I fixed all of that and still got RE. Can you tell me please what could be a greater bug than all those? I tested and it's OK (running on Windows XP) I even tested it in cygwin I'm out of mind. // FIXED CODE #include <stdio.h> #include <stack.h> #include <list.h> #include...
by arifcsecu
Wed Oct 14, 2009 8:10 pm
Forum: Volume 100 (10000-10099)
Topic: 10004 - Bicoloring
Replies: 93
Views: 29419

Re: 10004 - Bicoloring

" freopen("1004.txt","r",stdin);
int a,b,val;
while((scanf("%d",&n)==1)){
if(n==0)

"




your program reads input from a file
how can it possible
just comment the line like
// freopen("1004.txt","r",stdin)
by arifcsecu
Wed Oct 14, 2009 8:00 pm
Forum: Volume 100 (10000-10099)
Topic: 10000 - Longest Paths
Replies: 160
Views: 36344

Re: 10000 - Longest Path

Since vertex is 100

SO you can use Floyd warshall algorithm

hope it helps
by arifcsecu
Wed Oct 14, 2009 7:43 pm
Forum: Volume 116 (11600-11699)
Topic: 11690 - Money Matters
Replies: 19
Views: 6715

Re: 11690 MONEY MATTERS

Durjoy
remove ur code if u got accepted
by arifcsecu
Wed Oct 14, 2009 7:29 pm
Forum: Volume 116 (11600-11699)
Topic: 11686 - Pick up sticks
Replies: 44
Views: 10560

Re: 11686 How can

You make a simple error

n is 10^6

so you vector should be like

vector <long int> g[1000001];

but you declares as

vector <int> adjlist[100001]

Hope it helps
by arifcsecu
Sat Oct 10, 2009 10:12 pm
Forum: Volume 4 (400-499)
Topic: 400 - Unix ls
Replies: 93
Views: 17462

Re: 400 - Unix ls

After many wrong answer I got accepted My approach is very simple : 1. input the string like getline(cin,s ) 2. calculate the length of the maximum string 3.sort the string like sort(s,s+n) 4.calculate ncoloum=(60-max_len)/(max_len+1) +1 nrow=(n/ncoloum) if(n%ncoloum) nrow++; 5.1. print (----.....--...
by arifcsecu
Wed Oct 07, 2009 6:31 pm
Forum: Volume 116 (11600-11699)
Topic: 11686 - Pick up sticks
Replies: 44
Views: 10560

Re: 11686 How can

Code remove

Go to advanced search