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 11, 2021 01:07Yuriy LyfenkoYuriy LyfenkoScore: 16,916Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 01:079,884107,585,40944,479,04802,256,896
2Oct 11, 2021 01:079,886106,391,09644,487,82702,256,896
3Oct 11, 2021 01:079,892109,256,04744,512,85402,252,800
4Oct 11, 2021 01:0716,731260,300,24343,920,00031,371,00029,675,520
5Oct 11, 2021 01:0716,750259,450,94141,115,00034,262,00029,544,448
6Oct 11, 2021 01:0716,827266,670,25542,405,00033,318,00029,741,056
7Oct 11, 2021 01:0716,916262,789,91644,840,00031,284,00029,736,960
8Oct 11, 2021 01:0716,962265,620,03247,848,00028,481,00029,478,912
9Oct 11, 2021 01:0716,991266,195,36242,817,00033,642,00029,573,120
10Oct 11, 2021 01:0717,075272,653,07841,912,00034,927,00029,769,728
11Oct 11, 2021 01:0717,176267,318,54747,048,00030,245,00029,675,520
12Oct 11, 2021 01:0717,194270,976,57043,328,00034,043,00029,671,424