Search found 853 matches

by sohel
Sat Apr 04, 2015 12:28 am
Forum: C++
Topic: using & operator
Replies: 2
Views: 708

Re: using & operator

lcp wrote:Hi ,
x , y , m , n all lie in range [-10^4 , 10^4] .

so when i did
if ( (x & y) == 0) cout << "divisa ";

i got wrong answer.

But
if ( x== 0 || y== 0) gave okay .

what am i missing ??
They are not equivalent.
Suppose x = 8 and y = 1, then x&y is equal to 0.
by sohel
Mon Jul 21, 2014 4:27 am
Forum: Volume 117 (11700-11799)
Topic: 11727 - Cost Cutting
Replies: 7
Views: 2405

Re: 11727 - Cost Cutting

What are the inputs you tried to test the code?
by sohel
Mon Jun 24, 2013 1:56 am
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 42306

Re: 10137- the trip problem

A thread already exists for this topic: http://acm.uva.es/board/viewtopic.php?f=10&t=4055

Search the board first before posting. If one exists, make your post in that one.
by sohel
Sun Jun 09, 2013 4:52 am
Forum: Volume 103 (10300-10399)
Topic: 10338 - Mischievous Children
Replies: 56
Views: 18769

Re: why i am getting wrong answer for 10338 no problem

http://acm.uva.es/board/viewtopic.php?f=20&t=1353

Search the board first using the search option located at top-right. Don't create a new thread for a problem that already exists. Make your post in an existing thread.
by sohel
Sat Jun 08, 2013 4:15 am
Forum: Volume 4 (400-499)
Topic: 401 - Palindromes
Replies: 196
Views: 27453

Re: 401: Palindromes Wrong Answer

http://acm.uva.es/board/viewtopic.php?f=5&t=5863

Search the board first using the 'search' option located at the top right. Don't create a new thread for a problem that already exists. Make your post in an existing thread.
by sohel
Fri May 31, 2013 3:43 pm
Forum: Volume 107 (10700-10799)
Topic: 10783 - Odd Sum
Replies: 34
Views: 14005

Re: Odd sum

What is your output for the following input:

2 10


and look for threads related to your problem by using the search option on the top-right. Make your post in an existing thread - don't create a new one!
by sohel
Mon Mar 25, 2013 7:53 am
Forum: Other words
Topic: UVa Online Judge New Platform
Replies: 0
Views: 1988

UVa Online Judge New Platform

http://www.indiegogo.com/projects/uva-online-judge-new-platform The current UVa Online Judge platform was written back in 2005, using the technlogies and web concepts available at that time. During the past years the overall online services scenario has changed a lot. The way users interact with in...
by sohel
Wed Mar 06, 2013 6:22 am
Forum: General
Topic: Python?
Replies: 1
Views: 5853

Re: Python?

No, UVa doesn't allow python. UVa allows the languages that is permitted in the ACM ICPC World Finals and it doesn't include python.

You can try http://codeforces.com/ to solve problems using python.
by sohel
Mon Feb 25, 2013 3:08 am
Forum: Volume 119 (11900-11999)
Topic: 11900 - Boiled Eggs
Replies: 14
Views: 1689

Re: 11900 - Boiled Egg

You are assuming that p is not greater than n.
by sohel
Sat Jan 19, 2013 5:20 am
Forum: Bugs and suggestions
Topic: same code - different time
Replies: 1
Views: 1411

Re: same code - different time

was the difference significant?
by sohel
Mon Jan 14, 2013 8:03 am
Forum: General
Topic: test
Replies: 2
Views: 5888

Re: test

'test' passed :)

anything special you are testing?
by sohel
Tue Oct 30, 2012 8:26 pm
Forum: Volume 113 (11300-11399)
Topic: 11362 - Phone List
Replies: 19
Views: 8372

Re: 11362 - Phone List

Who said we are sorting each number?
by sohel
Mon Oct 29, 2012 10:45 am
Forum: Volume 113 (11300-11399)
Topic: 11371 - Number Theory for Newbies
Replies: 65
Views: 21028

Re: 11371 - Number Theory for Newbies

Well, it's kind of straight forward.

The first digit should obviously be the smallest to make the the number minimum. Since we aren't allowing leading zeros, so we must place the smallest non-zero digit. Then simply sort the remaining digits in ascending order.
by sohel
Fri Feb 03, 2012 5:04 am
Forum: Algorithms
Topic: graph problem
Replies: 2
Views: 4069

Re: graph problem

If the ordering is fixed, then can't the path be found by simply following that order? Say, I have to go from vertex 1 to vertex 5 and the order is (1 3 4 2 5), then the only path is 1->3->4->2->5? Am I missing something here? Could you clarify with an example: what do you mean by "ordering is the s...

Go to advanced search