Back to General discussions forum
Hi,
In my attempt to solve this problem, I started out with a simple script as below:
import math
POLYGON_SIDE_COUNT = 6
xRadius = 1000000000000000000
xDValue = 1000000000000000000
xdValue = xDValue/2
xhValue = math.sqrt( xRadius*xRadius - xdValue*xdValue )
xValue = math.sqrt( xdValue*xdValue + ( xRadius-xhValue )*( xRadius-xhValue ) )
xPerimeter = xValue * POLYGON_SIDE_COUNT * math.pow( 2,1 )
print( str( xdValue ) )
print( str( xhValue ) )
print( str( xValue ) )
print( str( xPerimeter ) )
Obviously in no way this is a solution to the problem, but when I try to run this code even at this rudimentary stage, the checker sometimes prints "fail" and cannot display any results. But then I tried to run it a second time and then it showed me correct results. Can you please test the checker to know the cause for such a behaviour, or is this expected due to some real time resource problem?
Thanks and Regards, Tinoy Mathews
Hi Friend!
Can you please test the checker to know the cause for such a behaviour
If I get it right, this is not about "checker" (the part which checks result which you submit for the task), but the sandbox runner (which allows to execute code from web-site and fill in the result).
It says fail
sometimes, when the 3-rd party service, which does this, fails :) Regretfully this is not the own
functionality of CodeAbbey, so when it doesn't work (happens sometimes), one needs to run code locally on one's own
machine... Sorry for this. I still hope we can create our own sandbox one day. Existing services are either very
expensive or unstable like this one.