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 10, 2023 01:19Yuriy LyfenkoYuriy LyfenkoScore: 10,339Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 01:193,01395,007,08713,560,39002,244,608
2May 10, 2023 01:193,03876,807,16213,669,55502,248,704
3May 10, 2023 01:193,04975,561,27513,719,13402,248,704
4May 10, 2023 01:1910,263239,859,22014,055,00032,127,00029,741,056
5May 10, 2023 01:1910,264233,764,75115,772,00030,418,00029,712,384
6May 10, 2023 01:1910,335235,987,78412,338,00034,168,00029,544,448
7May 10, 2023 01:1910,339236,584,57913,859,00032,668,00029,577,216
8May 10, 2023 01:1910,347236,477,06214,076,00032,484,00029,679,616
9May 10, 2023 01:1910,349233,634,11813,039,00033,531,00029,708,288
10May 10, 2023 01:1910,351241,544,76214,082,00032,499,00029,663,232
11May 10, 2023 01:1910,518240,508,03211,137,00036,196,00029,577,216
12May 10, 2023 01:1910,630242,102,60414,882,00032,953,00029,544,448