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 listDec 31, 2023 20:54Victor MuñozVictor MuñozScore: 10,715Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2023 20:543,35375,659,79615,089,29402,215,936
2Dec 31, 2023 20:543,36159,025,29415,126,05202,215,936
3Dec 31, 2023 20:543,38178,483,44715,212,40202,256,896
4Dec 31, 2023 20:5410,456241,099,71813,175,00033,878,00029,515,776
5Dec 31, 2023 20:5410,637230,535,27913,960,00033,905,00029,720,576
6Dec 31, 2023 20:5410,647232,057,73814,582,00033,331,00029,745,152
7Dec 31, 2023 20:5410,715238,781,23816,464,00031,753,00029,716,480
8Dec 31, 2023 20:5410,721236,648,92115,350,00032,893,00029,683,712
9Dec 31, 2023 20:5410,759239,844,23715,763,00032,653,00029,728,768
10Dec 31, 2023 20:5410,781246,309,72114,451,00034,063,00029,519,872
11Dec 31, 2023 20:5410,787244,482,18515,445,00033,098,00029,618,176
12Dec 31, 2023 20:5410,857232,006,18416,683,00032,175,00029,618,176