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 15, 2021 14:54Yuriy LyfenkoYuriy LyfenkoScore: 15,477Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 14:548,13993,253,80436,627,69702,252,800
2Oct 15, 2021 14:548,148112,595,45436,664,64302,244,608
3Oct 15, 2021 14:548,153131,193,26436,690,09602,252,800
4Oct 15, 2021 14:5415,361258,034,50032,317,00036,806,00029,712,384
5Oct 15, 2021 14:5415,410260,517,96639,008,00030,339,00029,667,328
6Oct 15, 2021 14:5415,468262,210,45739,022,00030,585,00029,511,680
7Oct 15, 2021 14:5415,477266,549,20339,798,00029,848,00029,544,448
8Oct 15, 2021 14:5415,517259,165,80536,431,00033,395,00029,663,232
9Oct 15, 2021 14:5415,539266,718,77140,426,00029,500,00029,736,960
10Oct 15, 2021 14:5415,542258,143,46341,739,00028,202,00029,577,216
11Oct 15, 2021 14:5415,553261,976,80541,519,00028,470,00029,544,448
12Oct 15, 2021 14:5415,585262,731,43140,545,00029,587,00029,642,752