æ¦è¦ 以ä¸ã®formatãPythonã§æåºããã°ãã mycode = r''' # distutils: language=c++ # cython: language_level=3, boundscheck=False, wraparound=False, cdivision=True {ããã«cythonã®ã³ã¼ããæ¸ã} ''' import sys import os if sys.argv[-1] == 'ONLINE_JUDGE': # ã³ã³ãã¤ã«æ with open('mycode.pyx', 'w') as f: f.write(mycode) os.system('cythonize -i -3 -b mycode.pyx') import mycode æ¦è¦ AtCoderã«ãããCythonæåºã®å¼±ç¹ 解決æ¹æ³ æ§è½è©ä¾¡ Pythonã®åç Cythonã®åç
{{#tags}}- {{label}}
{{/tags}}