题解 | #牛客网每日正确与错误的答题次数#
牛客网每日正确与错误的答题次数
https://www.nowcoder.com/practice/bd74b186d5954eb69c00ee804cebe364
import sys import pandas as pd for line in sys.stdin: a = line.split() print(int(a[0]) + int(a[1])) f=pd.read_csv("nowcoder.csv",sep=",") f1=f[f["date"]>="2021/12/01"] f3=f1[f1["date"]<="2021/12/31"] f3["year-month-day"]=pd.to_datetime(f["date"],format="%Y-%m-%d") f4=f3.groupby(["result","year-month-day"]).question_id.count() print(f4)