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 25, 2021 03:57Yuriy LyfenkoYuriy LyfenkoScore: 18,011Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 25, 2021 03:5710,703111,092,19348,162,73902,240,512
2Oct 25, 2021 03:5710,706120,798,15748,176,68702,240,512
3Oct 25, 2021 03:5710,709111,972,31048,189,12102,240,512
4Oct 25, 2021 03:5717,883266,171,35148,074,00032,398,00029,609,984
5Oct 25, 2021 03:5717,940267,978,67847,428,00033,301,00029,638,656
6Oct 25, 2021 03:5717,980269,764,06247,534,00033,375,00029,638,656
7Oct 25, 2021 03:5718,011277,092,17246,456,00034,595,00029,642,752
8Oct 25, 2021 03:5718,040270,076,71645,540,00035,640,00029,581,312
9Oct 25, 2021 03:5718,040275,104,34246,103,00035,078,00029,736,960
10Oct 25, 2021 03:5718,060271,752,43241,975,00039,295,00029,577,216
11Oct 25, 2021 03:5718,088273,418,65651,007,00030,387,00029,646,848
12Oct 25, 2021 03:5718,132272,483,16644,237,00037,356,00029,732,864