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 listMay 8, 2023 06:12Yuriy LyfenkoYuriy LyfenkoScore: 12,441Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2023 06:125,34497,056,75124,046,86102,252,800
2May 8, 2023 06:125,34876,049,33824,065,66902,256,896
3May 8, 2023 06:125,34993,455,66624,070,83202,248,704
4May 8, 2023 06:1212,376244,253,27420,884,00034,807,00029,708,288
5May 8, 2023 06:1212,407244,796,97722,746,00033,085,00029,663,232
6May 8, 2023 06:1212,434243,183,85025,739,00030,215,00029,626,368
7May 8, 2023 06:1212,441252,470,97825,247,00030,736,00029,544,448
8May 8, 2023 06:1212,478249,187,09124,502,00031,648,00029,638,656
9May 8, 2023 06:1212,501249,695,48521,929,00034,324,00029,663,232
10May 8, 2023 06:1212,513243,321,66222,122,00034,188,00029,523,968
11May 8, 2023 06:1212,523247,790,79923,566,00032,787,00029,663,232
12May 8, 2023 06:1212,596250,633,20329,573,00027,108,00029,675,520