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 1877. Bicycle Codes

Pascal and binary operations
Posted by Demenev Dmitriy 21 Dec 2015 23:45
I used binary operations to solve the problem and I didn't manage make my algorithm faster. My algorithm is too slow (0.015 sec). Could you give me a little advice how I can optimise my algorithm?

My facebook: https://www.facebook.com/dmitriy.demenev.7
Re: Pascal and binary operations
Posted by Jane Soboleva (SumNU) 22 Dec 2015 00:05
Time is rounded here, so you can only see results like 0.001, 0.015, 0.031, 0.046, 0.062 etc. 0.001 and 0.015 are pretty much equal, and 0.015 can mean pretty much anything between 0.002 and 0.015. Like 0.001, 0.015 is an ideal time, there's nothing to optimize here. Only starting from 0.031 the program might be considered "slightly slow".
Re: Pascal and binary operations
Posted by Demenev Dmitriy 22 Dec 2015 08:52
Thank you, Jane. It was really important for me. I got crazy of this runtime. It was like a bolt out of the blue xD Good luck!.

Btw, sorry for my English :D
Re: Pascal and binary operations
Posted by IlushaMax 7 Mar 2016 19:55
Same thing))