Parse dateTime Andrey Tsvetkov

Compute the sum of 5,000,000 UTC Unix timestamps as fast as possible.

Input

One RFC 3339 datetime per line on STDIN:

2017-05-04T14:31:30-03:00
2046-06-23T11:51:56-06:00
2031-08-14T13:18:38+06:00
2048-04-14T05:55:06-09:00
1980-08-28T00:43:03+02:00

Output

Print the sum of all UTC Unix timestamps (int64) to STDOUT.

Constraints

  • Datetimes are in the range 1950-01-01T00:00:00 to 2050-12-31T23:59:59
Back to listMay 8, 2023 06:23Yuriy LyfenkoYuriy LyfenkoScore: 12,064Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2023 06:234,96590,491,55222,342,20302,256,896
2May 8, 2023 06:234,97593,633,52622,389,09402,240,512
3May 8, 2023 06:234,97695,757,78922,391,64302,256,896
4May 8, 2023 06:2312,012245,658,15521,021,00033,033,00029,544,448
5May 8, 2023 06:2312,037250,410,31622,750,00031,417,00029,577,216
6May 8, 2023 06:2312,064258,587,42922,353,00031,933,00029,671,424
7May 8, 2023 06:2312,064241,851,80722,801,00031,488,00029,708,288
8May 8, 2023 06:2312,141243,873,05821,854,00032,782,00029,708,288
9May 8, 2023 06:2312,186246,706,19123,502,00031,336,00029,503,488
10May 8, 2023 06:2312,204250,569,30224,963,00029,956,00029,679,616
11May 8, 2023 06:2312,215251,255,56025,566,00029,401,00029,675,520
12May 8, 2023 06:2312,274251,999,25921,885,00033,349,00029,675,520