DA13. 牛客网用户最近的最长与最短连续签到天数
描述
Python 3 解法, 执行用时: 775ms, 内存消耗: 524288KB, 提交时间: 2022-07-26
import pandas as pd pd.set_option('display.width', 300) # 设置字符显示宽度 pd.set_option('display.max_rows', None) # 设置显示最大行 pd.set_option('display.max_columns', None) Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') #print(max(Nowcoder.Continuous_check_in_days)) #print(min(Nowcoder.Continuous_check_in_days)) print(Nowcoder['Continuous_check_in_days'].max()) print(Nowcoder['Continuous_check_in_days'].min())
Python 3 解法, 执行用时: 795ms, 内存消耗: 524288KB, 提交时间: 2022-07-22
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') df = Nowcoder max_num = df['Continuous_check_in_days'].max() min_num = df['Continuous_check_in_days'].min() print(max_num) print(mix_sum)
Python 3 解法, 执行用时: 795ms, 内存消耗: 524288KB, 提交时间: 2022-07-21
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(Nowcoder['Continuous_check_in_days'].max(),'\n',Nowcoder['Continuous_check_in_days'].min()) print(Nowcoder['Continuous_check_in_days'].max()) print(Nowcoder['Continuous_check_in_days'].min())
Python 3 解法, 执行用时: 795ms, 内存消耗: 524288KB, 提交时间: 2022-07-21
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(Nowcoder['Continuous_check_in_days'].max() ) print(Nowcoder['Continuous_check_in_days'].min() )
Python 3 解法, 执行用时: 798ms, 内存消耗: 524288KB, 提交时间: 2022-08-02
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') aa = Nowcoder['Continuous_check_in_days'].max() bb = Nowcoder['Continuous_check_in_days'].min() print(aa,'\n',bb)