题解 | #牛客网答题正误总数#
牛客网答题正误总数
https://www.nowcoder.com/practice/85a4eff716a34ba8b250c78a5a2c8224
import sys import pandas as pd fm=pd.read_csv('nowcoder.csv') fm=pd.Series(fm.question_id,index=fm.result) #line_1 print(fm.groupby('result').count()) # print('========')#可以省略 line_1 # print(fm.groupby('result').size())#只返回行数 不返回各列详情 for line in sys.stdin: a = line.split() print(int(a[0]) + int(a[1]))