Search found 96 matches

by uvasarker
Mon Feb 18, 2013 2:25 pm
Forum: Volume 4 (400-499)
Topic: 485 - Pascal's Triangle of Death
Replies: 50
Views: 4880

Re: 485 WA........

OKK
by uvasarker
Mon Feb 18, 2013 5:51 am
Forum: Volume 4 (400-499)
Topic: 496 - Simply Subsets
Replies: 48
Views: 9223

Re: Help me with 496

Please, help me I am getting WA... I have no idea... Why I am getting this? #include <cstdio> #include <cstring> #include <cmath> #include <cctype> #include <map> #include <iterator> #include <iostream> #include <cstdlib> using namespace std; int main() { map<long,long> AA, BB; long a=0,b=0, n, nl=0...
by uvasarker
Mon Jan 07, 2013 3:41 pm
Forum: Algorithms
Topic: Help Needed in C.
Replies: 3
Views: 2280

Re: Help Needed in C.

Hmm,
Guru
Any difference with execution time?
by uvasarker
Sun Jan 06, 2013 5:25 am
Forum: Algorithms
Topic: Help Needed in C.
Replies: 3
Views: 2280

Help Needed in C.

Which one is better? And why? Please, help............ Code 1::: #include <cstdio> int main() { int n; scanf("%d",&n); for(int i=0 ; i<n ; i++ ){ printf("Help Needed.\n"); } return 0; } Code 2::: #include <cstdio> #define IN ( {int _T; scanf("%d",&_T); _T;} ) #define loop(ini, lim, inc) for(int i=in...
by uvasarker
Thu Dec 13, 2012 3:15 pm
Forum: Volume 125 (12500-12599)
Topic: 12571 - Brother & Sisters!
Replies: 6
Views: 1585

Re: 12571 - Brother & Sisters!

Guru, I am getting TLE.......Why? give me some tricks...for this problem..... My code generates same output as yours within 0.047 seconds: #include <cstdio> #include <cstring> #include <cctype> #include <cmath> #include <algorithm> #include <iostream> using namespace std; int main() { int T; //freop...
by uvasarker
Wed Dec 12, 2012 8:09 am
Forum: General
Topic: Problem in BFS implementation......Help me please.
Replies: 5
Views: 8680

Re: Problem in BFS implementation......Help me please.

Guru,
Thanks, Thanks, Thanks...................
Guru,
I cannot understand your sample input.
Because, you take first 2 3 6. Why not 1?
And then 1 4. But why?
by uvasarker
Tue Dec 11, 2012 6:50 am
Forum: General
Topic: Problem in BFS implementation......Help me please.
Replies: 5
Views: 8680

Re: Problem in BFS implementation......Help me please.

Guru, I know that's algo. But, I can not implement in coding. It is better for me if you give me the source code for that example. Then I can learn from your source code. Guru, If you don't want to publish/public you source code. Please, mail to me: me.sarker@gmail.com Please, help me..........please.
by uvasarker
Sun Dec 09, 2012 2:11 pm
Forum: General
Topic: Problem in BFS implementation......Help me please.
Replies: 5
Views: 8680

Problem in BFS implementation......Help me please.

I want to learn graph theory. Please me, please. Finding the shortest-path between 1 and 8 in the following graph. .......................1 ..................../.. \...\ ................../......\....\ ................2........3.....6 .................\....../.......| ...................\../...........
by uvasarker
Mon Nov 26, 2012 9:19 pm
Forum: Volume 104 (10400-10499)
Topic: 10433 - Automorphic Numbers
Replies: 41
Views: 23288

Re: 10433 - Automorphic Numbers

I have no idea about it's 2nd statement:
what is the square value of these following numbers:
0
1
0000
0001
0005
0076

Same like as?
00
1
00000000
0000001
00000025
00005776

Or Not?
Please, help me according to this problem.
by uvasarker
Sun Nov 25, 2012 10:16 pm
Forum: Volume 124 (12400-12499)
Topic: 12491 - Words
Replies: 1
Views: 900

12491 - Words

I am getting WA. in this problem.......Please, help me My Code: #include <cstdio> #include <cstring> #include <string> #include <cctype> #include <map> #include <iterator> #include <iostream> using namespace std; int main() { map<int,string>str1, str2; map<int,string>::iterator it, bb, ee; string s1...
by uvasarker
Tue Nov 06, 2012 9:08 pm
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 43928

Re: 623 - 500!

WOW! ACCCCC! thanks guru.
by uvasarker
Sun Nov 04, 2012 8:47 am
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 43928

Re: 623 - 500!

I am new in (Uva+Java). Please, help me. I am getting Rumtime error. why?

Code: Select all

/* Removed */
by uvasarker
Wed Oct 31, 2012 1:19 pm
Forum: Volume 113 (11300-11399)
Topic: 11385 - Da Vinci Code
Replies: 70
Views: 23545

Re: 11385 - Da Vinci Code

Still WA.........Guru Code: // Remove trailing space from output array #include <cstdio> #include <cstring> #include <string> #include <iostream> #include <cctype> #include <cmath> #include <cstdlib> #include <map> #include <iterator> using namespace std; map<unsigned long, unsigned long> fib; map<u...
by uvasarker
Sun Oct 28, 2012 5:02 pm
Forum: Volume 113 (11300-11399)
Topic: 11385 - Da Vinci Code
Replies: 70
Views: 23545

Re: 11385 - Da Vinci Code

Please, help me, I am getting WA Code: // Remove trailing space from output array #include <cstdio> #include <cstring> #include <string> #include <iostream> #include <cctype> #include <cmath> #include <cstdlib> #include <map> #include <iterator> using namespace std; map<unsigned long, unsigned long>...
by uvasarker
Sun Sep 02, 2012 1:18 pm
Forum: Volume 108 (10800-10899)
Topic: 10815 - Andy's First Dictionary
Replies: 116
Views: 30775

Re: Getting WA in 10815 - Andy's First Dictionary

I am getting TLE help me.........please

Code: Select all

/* Removed */
Thanks guru (brianfry713).
I got AC

Go to advanced search