標準入力から一行づつ読み込み最大値を表示(Pythonの場合)
#! /user/local/bin/python first=0 for line in open('../data_a.txt','r'): num = int(line) if first !=1 or max < num: max = num first =1 print max
#! /user/local/bin/python first=0 for line in open('../data_a.txt','r'): num = int(line) if first !=1 or max < num: max = num first =1 print max