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 listOct 15, 2021 19:19Yuriy LyfenkoYuriy LyfenkoScore: 13,282Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 19:195,99388,333,48926,970,02002,248,704
2Oct 15, 2021 19:195,99484,442,62826,971,67702,244,608
3Oct 15, 2021 19:196,01798,758,19227,078,73902,256,896
4Oct 15, 2021 19:1913,117240,862,55727,843,00031,185,00029,708,288
5Oct 15, 2021 19:1913,119254,888,00926,465,00032,572,00029,544,448
6Oct 15, 2021 19:1913,242252,267,76427,085,00032,502,00029,667,328
7Oct 15, 2021 19:1913,282248,571,05327,264,00032,507,00029,544,448
8Oct 15, 2021 19:1913,301246,646,78323,381,00036,475,00029,577,216
9Oct 15, 2021 19:1913,328252,780,43426,306,00033,672,00029,544,448
10Oct 15, 2021 19:1913,354248,954,85825,464,00034,631,00029,708,288
11Oct 15, 2021 19:1913,402252,472,09025,443,00034,866,00029,544,448
12Oct 15, 2021 19:1913,424254,776,28325,484,00034,923,00029,708,288