Re: [gcj] Re: Help with run time error on Bus Routes

2020-04-20 Thread Randall Woodruff
Thank you! I miss read the 10^12 as 2^12. What an expensive lesson. Thanks! On Mon, Apr 20, 2020 at 3:48 PM porker2008 wrote: > You need to use long long to handle the day because it is out of range of > 32-bit integers. > > > - > > > *#include * > *#include * > *#include * > *usin

[gcj] Re: Help with run time error on Bus Routes

2020-04-20 Thread porker2008
You need to use long long to handle the day because it is out of range of 32-bit integers. - *#include * *#include * *#include * *using namespace std;* *long long calcTime();* *vector readVector(int n);* *int main() {* * int nCases = 0;* * cin >> nCases;* * for (int i = 0; i < n