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 01:10Yuriy LyfenkoYuriy LyfenkoScore: 17,091Success
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 01:109,948105,724,47344,766,08302,244,608
2Oct 11, 2021 01:109,951105,054,35244,781,59202,256,896
3Oct 11, 2021 01:109,962103,088,46444,829,18002,240,512
4Oct 11, 2021 01:1016,963270,851,59443,918,00032,415,00029,675,520
5Oct 11, 2021 01:1017,003269,897,01246,759,00029,755,00029,671,424
6Oct 11, 2021 01:1017,090265,629,60647,926,00028,979,00029,540,352
7Oct 11, 2021 01:1017,091265,573,00045,497,00031,414,00029,663,232
8Oct 11, 2021 01:1017,116275,607,77643,133,00033,890,00029,548,544
9Oct 11, 2021 01:1017,117265,960,85443,718,00033,309,00029,466,624
10Oct 11, 2021 01:1017,164265,526,17047,445,00029,791,00029,589,504
11Oct 11, 2021 01:1017,172265,354,35342,150,00035,125,00029,655,040
12Oct 11, 2021 01:1017,245263,579,46139,748,00037,855,00029,655,040