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 10, 2023 01:06Yuriy LyfenkoYuriy LyfenkoScore: 10,262Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 01:063,02058,607,72613,590,92302,240,512
2May 10, 2023 01:063,03962,484,02713,677,03402,248,704
3May 10, 2023 01:063,04479,462,60413,696,61502,248,704
4May 10, 2023 01:0610,164229,390,83714,444,00031,295,00029,667,328
5May 10, 2023 01:0610,201235,310,38712,519,00033,385,00029,679,616
6May 10, 2023 01:0610,207233,844,37713,123,00032,807,00029,708,288
7May 10, 2023 01:0610,262234,958,60010,656,00035,522,00029,679,616
8May 10, 2023 01:0610,303233,832,58413,247,00033,117,00029,671,424
9May 10, 2023 01:0610,326240,801,05812,584,00033,881,00029,581,312
10May 10, 2023 01:0610,337244,129,24511,629,00034,887,00029,671,424
11May 10, 2023 01:0610,338232,275,79313,291,00033,228,00029,708,288
12May 10, 2023 01:0610,349230,025,70113,453,00033,117,00029,708,288