感覺 sys.stdin.readline() 比 input() 速度快很多。
用 17 筆資料測試了一下
input() 耗時約 1.2ms
stdin.readline() 耗時約 1ms
感覺測資要很大或很多,才會真的有差(?
而且在 import sys 其實會多花 0.5 ms XD