adshin21's blog

By adshin21, history, 5 weeks ago, In English,

I'm a python programmer and I genrally happens that some problem on CF does not have any submission in Python, it is either Python 2 or Python 3 but ...

This problem that needs simple dfs ( sorry for spoiler but right now I'm not asking for help in solution ) gives Run Time Error on test 15.

After failing to get several times on this problem , I went for the accepted submissions then I found most of them having same result as mine ( Run Time Error on test 15 ) and there is no Accepted solutions in Python.

I'm here to ask may someone correct or find the error why it is getting RE or tell me the exact reason.

My code

Although this problem is from Educational Round 1.

I don't know at that time CF allows submissions in python or not. Somehow I managed to get AC using C++.

Sorry for my poor english. Thank You.

Read more »

 
 
 
 
  • Vote: I like it  
  • +5
  • Vote: I do not like it  

By adshin21, history, 6 weeks ago, In English,

As I was solving this problem where I have to find the min of something with ans.

In my machine it showed the correct ans where I'd defined ans = sys.maxsize

I was getting wrong answer every time. My submission

Just changed sys.maxsize to 10^18 and got AC. Link

I used this algorithm Link

I just want to ask why they are using 32 bit interpreter.

P.S. — I didn't have any personal issue with that but I came to know my fault after the contest had been finished.

Sorry for my poor english. :)

Read more »

 
 
 
 
  • Vote: I like it  
  • +22
  • Vote: I do not like it  

By adshin21, history, 2 months ago, In English,

Problem Link

My solution in Python3... Link 1

My Solution in PYPY3... Link 2

Any suggestion will be also great.

Thank You !

Read more »

 
 
 
 
  • Vote: I like it  
  • -9
  • Vote: I do not like it