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 7, 2023 14:57Yuriy LyfenkoYuriy LyfenkoScore: 13,706Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2023 14:576,490117,782,80229,203,22002,244,608
2May 7, 2023 14:576,517103,051,68429,325,14102,248,704
3May 7, 2023 14:576,647100,837,94629,913,35402,248,704
4May 7, 2023 14:5713,580249,530,79727,599,00033,513,00029,708,288
5May 7, 2023 14:5713,615253,803,05328,203,00033,066,00029,712,384
6May 7, 2023 14:5713,688249,393,57327,377,00034,221,00029,708,288
7May 7, 2023 14:5713,706249,438,17026,167,00035,512,00029,708,288
8May 7, 2023 14:5713,717255,774,27228,334,00033,394,00029,708,288
9May 7, 2023 14:5713,764252,310,52430,425,00031,512,00029,544,448
10May 7, 2023 14:5713,789253,610,27533,846,00028,205,00029,474,816
11May 7, 2023 14:5713,844248,886,08126,182,00036,114,00029,581,312
12May 7, 2023 14:5713,981253,533,07329,361,00033,555,00029,671,424