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 11, 2021 13:59Yuriy LyfenkoYuriy LyfenkoScore: 15,490Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 13:598,199105,330,23136,897,17702,256,896
2Oct 11, 2021 13:598,200107,755,79736,901,97402,256,896
3Oct 11, 2021 13:598,20394,215,02136,911,27602,244,608
4Oct 11, 2021 13:5915,173262,194,07635,143,00033,135,00029,675,520
5Oct 11, 2021 13:5915,262263,100,43435,349,00033,329,00029,708,288
6Oct 11, 2021 13:5915,396250,528,69436,680,00032,604,00029,712,384
7Oct 11, 2021 13:5915,490257,587,37337,533,00032,171,00029,675,520
8Oct 11, 2021 13:5915,524260,565,09134,929,00034,929,00029,544,448
9Oct 11, 2021 13:5915,548257,505,55538,639,00031,329,00029,577,216
10Oct 11, 2021 13:5915,580259,716,07537,671,00032,438,00029,708,288
11Oct 11, 2021 13:5915,591262,578,37540,091,00030,068,00029,675,520
12Oct 11, 2021 13:5915,598258,962,45934,121,00036,071,00029,503,488