選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

18 行
277B

  1. import sys,getopt
  2. import fileinput
  3. def process(line):
  4. strings = line.strip().split('\t')
  5. pos2 = int(strings[2])
  6. pos1 = int(strings[1])
  7. c = pos2 - pos1
  8. return c
  9. result = 0
  10. for line in fileinput.input(sys.argv[1]):
  11. C = process(line)
  12. result = result + C
  13. print(result)