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:45Yuriy LyfenkoYuriy LyfenkoScore: 20,423Success
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:4512,964118,263,51258,337,71002,252,800
2Oct 10, 2021 22:4512,992123,588,68958,465,53702,252,800
3Oct 10, 2021 22:4512,998120,919,47458,490,08902,252,800
4Oct 10, 2021 22:4520,306295,203,30261,265,00030,113,00029,712,384
5Oct 10, 2021 22:4520,404280,080,15366,879,00024,938,00029,491,200
6Oct 10, 2021 22:4520,416286,515,89961,248,00030,624,00029,573,120
7Oct 10, 2021 22:4520,423277,736,52358,576,00033,327,00029,663,232
8Oct 10, 2021 22:4520,441280,592,71956,160,00035,826,00029,663,232
9Oct 10, 2021 22:4520,506279,690,12158,814,00033,463,00029,679,616
10Oct 10, 2021 22:4520,527294,326,95057,979,00034,394,00029,700,096
11Oct 10, 2021 22:4520,563282,127,56761,344,00031,191,00029,519,872
12Oct 10, 2021 22:4520,662284,106,93758,616,00034,361,00029,544,448