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 19:06Yuriy LyfenkoYuriy LyfenkoScore: 13,269Success
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 19:066,27391,948,62328,227,30302,248,704
2Oct 15, 2021 19:066,28187,561,70028,266,44202,252,800
3Oct 15, 2021 19:066,284107,581,82628,279,52902,248,704
4Oct 15, 2021 19:0613,187257,161,46928,053,00031,290,00029,675,520
5Oct 15, 2021 19:0613,227243,084,92224,394,00035,128,00029,700,096
6Oct 15, 2021 19:0613,267249,075,56322,496,00037,206,00029,474,816
7Oct 15, 2021 19:0613,269239,022,04828,227,00031,484,00028,094,464
8Oct 15, 2021 19:0613,297255,676,40424,931,00034,904,00029,544,448
9Oct 15, 2021 19:0613,326246,472,02031,820,00028,148,00029,540,352
10Oct 15, 2021 19:0613,348248,793,09824,617,00035,449,00029,675,520
11Oct 15, 2021 19:0613,412254,480,25233,388,00026,967,00029,708,288
12Oct 15, 2021 19:0613,640261,368,13831,293,00030,089,00029,708,288