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:53Yuriy LyfenkoYuriy LyfenkoScore: 17,685Success
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:5310,251100,884,80546,129,77802,232,320
2Oct 25, 2021 03:5310,252110,425,22446,132,97402,244,608
3Oct 25, 2021 03:5310,259110,101,81646,165,80302,232,320
4Oct 25, 2021 03:5317,468269,046,60746,542,00032,062,00029,638,656
5Oct 25, 2021 03:5317,525264,314,48845,064,00033,798,00029,638,656
6Oct 25, 2021 03:5317,663273,201,10551,431,00028,053,00029,659,136
7Oct 25, 2021 03:5317,685268,330,62649,738,00029,843,00029,573,120
8Oct 25, 2021 03:5317,697270,568,29344,796,00034,841,00029,708,288
9Oct 25, 2021 03:5317,698263,994,80944,245,00035,396,00029,671,424
10Oct 25, 2021 03:5317,764270,866,63346,117,00033,819,00029,667,328
11Oct 25, 2021 03:5317,793275,888,77550,042,00030,025,00029,769,728
12Oct 25, 2021 03:5318,6831,528,743,29648,674,00035,399,00029,523,968