#30952: python AC EOF detect


forkidlai (forkidlai)

學校 : 不指定學校
編號 : 192336
來源 : [220.130.18.196]
最後登入時間 :
2024-02-06 15:07:01
a626. 6. Prime Directive -- HP CodeWars2007 | From: [220.130.18.196] | 發表日期 : 2022-06-24 11:42

方法1: 

try:

  ......

except EOFError:

  exit(0)

方法2:

from sys import stdin

stdin.readlines()

 

 
ZeroJudge Forum