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:56Yuriy LyfenkoYuriy LyfenkoScore: 17,569Success
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:5610,240109,117,90346,078,59802,236,416
2Oct 25, 2021 03:5610,252115,050,93646,134,17502,236,416
3Oct 25, 2021 03:5610,258108,897,79646,160,64302,248,704
4Oct 25, 2021 03:5617,488271,712,42743,282,00035,412,00029,667,328
5Oct 25, 2021 03:5617,510271,068,15945,458,00033,336,00029,638,656
6Oct 25, 2021 03:5617,526270,546,77746,268,00032,598,00029,499,392
7Oct 25, 2021 03:5617,569274,347,14647,654,00031,408,00029,536,256
8Oct 25, 2021 03:5617,595269,571,21043,451,00035,726,00029,581,312
9Oct 25, 2021 03:5617,641270,806,33644,214,00035,170,00029,536,256
10Oct 25, 2021 03:5617,656272,060,57044,693,00034,761,00029,638,656
11Oct 25, 2021 03:5617,704272,769,79746,559,00033,108,00029,671,424
12Oct 25, 2021 03:5617,915271,882,19349,960,00030,657,00029,700,096