fork download
  1. #!/usr/bin/python
  2. #coding:utf-8
  3.  
  4. #最初の確認 #Exploration===探査
  5. def Exploration():
  6. #pythonのバージョンを求める
  7. import platform
  8. print(platform.python_version())
  9. def Exploration3():
  10. #ガーベージコレクションの有効と確認
  11. import gc
  12. gc.enable()
  13. print(gc.isenabled())
  14. #Exploration()
  15. #Exploration3()
  16.  
  17. '''
  18. #0~9,a~z,A~Z
  19. import string
  20. li_all = [x for x in string.digits + string.ascii_letters]
  21. print(li_all)
  22. '''
  23.  
  24.  
  25. '''
  26. indexes = [y for y, t in enumerate(B) if t == 1]
  27. print(indexes) # [0, 2, 4]
  28. '''
  29.  
  30.  
  31. #l=[0,1,2,3,4,5]
  32. #print(max(l),min(l))
  33.  
  34. import time
  35. start = time.time()
  36.  
  37.  
  38.  
  39. #此処に処理を追加
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. print("")
  48. elapsed_time = time.time() - start
  49. print ("elapsed_time:{0}".format(elapsed_time) + "[sec]")
Success #stdin #stdout 0.02s 27704KB
stdin
Standard input is empty
stdout
elapsed_time:3.814697265625e-06[sec]