百度笔试
第一道3分钟写完AC,瞬间激起斗志,第二道教会我做人,30分钟没出来结果😂😂
求分享公交车线路规划的方法~
第一题
import sys if __name__ == '__main__': line = sys.stdin.readline().strip() value = map(int, line.split()) n = value[0] m = value[1] max1 = n-m max2 = 2*m-n if max1 > max2: print max1 else: print max2