ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1131. Copying

Test 6
Posted by Shorekh 20 Oct 2016 22:48
What is a test 6?
Re: Test 6
Posted by Siroj Matchanov [TUIT] 9 Feb 2018 04:11
Whoever gets Wrong Answer at 6th test, try to change your way of finding the power of two.

My solution got WA#6 when I calculated power of two this way:
power = ceil(log(x)/log(2));

Better calculate it by multiplying it.