old_contents: #!/usr/bin/python3
  # -*- coding: utf-8 -*-
  import sys
  sys.path.append("../core")
  sys.path.append("..")
  from AtCoder import AtCoder
  import AccountInformation
  import FormatAnalyzer
  import FormatPredictor
  import CppCodeGenerator
  
  class NoPatternFoundError(Exception) : pass
  
  if __name__ == "__main__":
  	atcoder = AtCoder(AccountInformation.username,AccountInformation.password)
  	succ = fail = 0
  
  	print("|問題名|結果|エラーの型|")
  	print("|-:|:-:|:-|")
  	for cid in atcoder.get_all_contestids():
  		plist = atcoder.get_problem_list(cid)
  		result_md = ""
  		error = ""
  		for k,v in plist.items():
  			try:
  				informat,samples = atcoder.get_all(v)
  				result = FormatPredictor.format_predictor(informat,samples)
  				if result:
  					pass
  				else:
  					raise NoPatternFoundError
  				result_md = "○"
  				error = ""
  			except KeyboardInterrupt:
  				sys.exit(-1)
  			except Exception as e:
  				#print("fail,",v)
  				result_md = "×"
  				error = str(type(e))[1:-1]
  
  			print("|[%s(%s)](%s)|%s|%s|" % (cid,k,v,result_md,error) )
  			print("|[%s(%s)](%s)|%s|%s|" % (cid,k,v,result_md,error),file=sys.stderr )
  
new_contents: #!/usr/bin/python3
  # -*- coding: utf-8 -*-
  import sys
  sys.path.append("../core")
  sys.path.append("..")
  from AtCoder import AtCoder
  import AccountInformation
  import FormatAnalyzer
  import FormatPredictor
  
  class NoPatternFoundError(Exception) : pass
  
  if __name__ == "__main__":
  	atcoder = AtCoder(AccountInformation.username,AccountInformation.password)
  	succ = fail = 0
  
  	print("|問題名|結果|エラーの型|")
  	print("|-:|:-:|:-|")
  	for cid in atcoder.get_all_contestids():
  		plist = atcoder.get_problem_list(cid)
  		result_md = ""
  		error = ""
  		for k,v in plist.items():
  			try:
  				informat,samples = atcoder.get_all(v)
  				result = FormatPredictor.format_predictor(informat,samples)
  				if result:
  					pass
  				else:
  					raise NoPatternFoundError
  				result_md = "○"
  				error = ""
  			except KeyboardInterrupt:
  				sys.exit(-1)
  			except Exception as e:
  				#print("fail,",v)
  				result_md = "×"
  				error = str(type(e))[1:-1]
  
  			print("|[%s(%s)](%s)|%s|%s|" % (cid,k,v,result_md,error) )
  			print("|[%s(%s)](%s)|%s|%s|" % (cid,k,v,result_md,error),file=sys.stderr )
  
subject: remove unnecessary import