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 10, 2021 22:49Yuriy LyfenkoYuriy LyfenkoScore: 20,481Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 22:4912,952118,875,31958,285,67802,252,800
2Oct 10, 2021 22:4912,991117,989,92158,457,28702,260,992
3Oct 10, 2021 22:4912,995119,462,28458,479,51102,260,992
4Oct 10, 2021 22:4920,359285,297,67062,130,00029,485,00029,548,544
5Oct 10, 2021 22:4920,413278,959,76264,190,00027,668,00029,548,544
6Oct 10, 2021 22:4920,447290,739,67756,175,00035,835,00029,573,120
7Oct 10, 2021 22:4920,481282,019,04859,462,00032,704,00029,708,288
8Oct 10, 2021 22:4920,506285,495,55461,173,00031,104,00029,544,448
9Oct 10, 2021 22:4920,521284,538,75060,863,00031,481,00029,605,888
10Oct 10, 2021 22:4920,525284,843,93060,875,00031,487,00029,671,424
11Oct 10, 2021 22:4920,542279,861,82959,934,00032,506,00029,540,352
12Oct 10, 2021 22:4920,575287,086,82756,904,00035,685,00029,794,304