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,473Success
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,964124,090,74258,339,10502,248,704
2Oct 10, 2021 22:4512,975111,967,73058,387,20402,252,800
3Oct 10, 2021 22:4513,008104,500,88058,536,58602,248,704
4Oct 10, 2021 22:4520,385276,098,69561,155,00030,577,00029,675,520
5Oct 10, 2021 22:4520,416280,174,18759,873,00032,001,00029,495,296
6Oct 10, 2021 22:4520,422280,171,62460,245,00031,654,00029,622,272
7Oct 10, 2021 22:4520,473280,890,00365,970,00026,160,00029,683,712
8Oct 10, 2021 22:4520,536288,163,33559,553,00032,857,00029,544,448
9Oct 10, 2021 22:4520,566278,362,10359,641,00032,905,00029,671,424
10Oct 10, 2021 22:4520,610276,759,04758,471,00034,276,00029,544,448
11Oct 10, 2021 22:4520,626287,968,56461,877,00030,938,00029,675,520
12Oct 10, 2021 22:4520,750286,392,57362,249,00031,124,00029,708,288