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 listJun 14, 2024 20:54джулисджулисScore: 111,532Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 14, 2024 20:54104,299524,871,951469,343,47602,265,088
2Jun 14, 2024 20:54104,360535,073,263469,621,09702,256,896
3Jun 14, 2024 20:54104,384547,008,482469,729,98202,252,800
4Jun 14, 2024 20:54111,434691,288,980458,021,00043,433,00029,560,832
5Jun 14, 2024 20:54111,443693,253,470437,226,00064,269,00029,556,736
6Jun 14, 2024 20:54111,511687,829,781450,717,00051,081,00029,724,672
7Jun 14, 2024 20:54111,532693,505,370444,908,00056,988,00029,724,672
8Jun 14, 2024 20:54111,549687,479,431442,914,00059,055,00029,515,776
9Jun 14, 2024 20:54111,594691,553,663446,487,00055,686,00029,720,576
10Jun 14, 2024 20:54111,663696,071,955455,975,00046,507,00029,556,736
11Jun 14, 2024 20:54111,690695,806,221446,759,00055,844,00029,720,576
12Jun 14, 2024 20:54111,793688,921,838451,445,00051,622,00029,573,120