foo.cc: In function 'int main()':
foo.cc:78:55: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
printf("%d\n", max(t[i - 1] + p[i], t[i] + 2 * q[i]));//输出每一种情况下的最优解
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-07-10T04:22:41.845Z","handle":"2020-07-10T04:22:41.845Z","cache_start":"2020-07-10T04:22:41.857Z","read_cases":"2020-07-10T04:22:41.976Z","judge":"2020-07-10T04:22:41.977Z","done":"2020-07-10T04:22:43.468Z"}