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 15, 2021 18:57Yuriy LyfenkoYuriy LyfenkoScore: 13,540Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 18:576,38494,697,36428,728,40302,260,992
2Oct 15, 2021 18:576,38593,476,84928,734,57702,252,800
3Oct 15, 2021 18:576,392106,102,33128,764,46502,256,896
4Oct 15, 2021 18:5713,502254,604,01928,780,00031,978,00029,663,232
5Oct 15, 2021 18:5713,520255,808,87427,378,00033,463,00029,687,808
6Oct 15, 2021 18:5713,522259,175,60426,077,00034,770,00029,671,424
7Oct 15, 2021 18:5713,540257,132,00829,931,00031,000,00029,708,288
8Oct 15, 2021 18:5713,560247,549,11427,460,00033,562,00029,675,520
9Oct 15, 2021 18:5713,576250,974,18225,773,00035,318,00029,675,520
10Oct 15, 2021 18:5713,639251,270,13432,494,00028,883,00029,667,328
11Oct 15, 2021 18:5713,667247,058,71928,700,00032,800,00029,675,520
12Oct 15, 2021 18:5713,751251,768,43226,520,00035,360,00029,708,288