34
Ciel Avenir
https://twitter.com/cielavenir
Last seen 1 year ago
Member for 10 years, 2 months, 20 days
Difficulty Normal
I'm a Japanese, not French nor [snip].
I'm too much a competitive programmer rather than system engineer; my coding motto is to be artistic.
Now, if ZeroDivisionError is triggered, I can **assure** that the given equation is not solvable.
More
I have solved in an usual way: http://www.checkio.org/mission/number-guess/publications/ciel/python-3/second/
More
Actually I used
irb> (0..100).map{|e|[e%2,e%3,e%5,e%7]}
Perhaps I should have used
[[e%2,e%3,e%5,e%7] for e in range(101)]
More
It seems len(data) is too short. But... this is due to CheckiO tests.py format...
More
Sigh... I moved this solution to uncategorized and republished new version.
More
In this solution, I try to bypass checkio guardian...
#Most common Py3 detection
sys.version_info[0]>=3
#Usual Py3 detection on CheckiO
'maketrans' in str.__dict__
#Hackish way
__import__.__globals__['sys'].version_info[0]>=3
More
Look at the line 577.
I don't see why this "bytes" is required. If pad\_0\_1\_size's "\x80" is wrong, possibly CheckiO executes Py2 code under Py3 with some layers. If so, the layer must be fixed.
More
Put kabopan\_py3test2 and kabopan\_py2test2 to creative directory to make sure that older kabopan-based publication are in grave...
More
Py3.4 version:
import codecs
i_love_python=lambda:codecs.encode('V ybir Clguba!','rot13')
if __name__=='__main__': assert i_love_python()=='I love Python!'
Well, CheckiO does not allow codecs module...
More
cf: http://yukicoder.me/submissions/156186
O(nm^2 + 2^k) (k==2 with this problem)
More
Actually I think current random test has issue: it does not make large rooms like basic test3.
More