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 4, 2024 23:18Joad NacerJoad NacerScore: 25,877Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 4, 2024 23:1820,674160,062,69893,031,13802,289,664
2May 4, 2024 23:1820,681167,572,24493,065,69402,293,760
3May 4, 2024 23:1820,734162,039,95793,302,18502,301,952
4May 4, 2024 23:1825,665301,378,42250,654,00064,838,00029,663,232
5May 4, 2024 23:1825,741309,607,56449,928,00065,905,00029,560,832
6May 4, 2024 23:1825,875304,543,96951,980,00064,456,00029,671,424
7May 4, 2024 23:1825,877303,801,82248,927,00067,519,00029,663,232
8May 4, 2024 23:1825,882308,760,82251,882,00064,588,00029,573,120
9May 4, 2024 23:1825,927305,590,98851,172,00065,501,00029,560,832
10May 4, 2024 23:1825,959314,520,92349,773,00067,041,00029,716,480
11May 4, 2024 23:1826,020304,838,43051,354,00065,734,00029,548,544
12May 4, 2024 23:1826,340308,324,94252,323,00066,205,00029,564,928