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 19:18Yuriy LyfenkoYuriy LyfenkoScore: 15,212Success
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 19:186,115100,230,22827,516,16902,252,800
2Oct 15, 2021 19:186,28594,944,02528,280,34602,256,896
3Oct 15, 2021 19:186,288105,120,47128,297,13002,252,800
4Oct 15, 2021 19:1815,176261,322,70634,147,00034,147,00029,675,520
5Oct 15, 2021 19:1815,178257,168,61034,151,00034,151,00029,671,424
6Oct 15, 2021 19:1815,211260,527,19028,521,00039,929,00029,712,384
7Oct 15, 2021 19:1815,212253,019,12527,572,00040,883,00029,540,352
8Oct 15, 2021 19:1815,237262,159,57031,344,00037,222,00029,708,288
9Oct 15, 2021 19:1815,372262,445,96438,311,00030,862,00029,663,232
10Oct 15, 2021 19:1815,458265,596,52736,826,00032,734,00029,675,520
11Oct 15, 2021 19:1815,546263,274,23731,361,00038,598,00029,732,864
12Oct 15, 2021 19:1815,609281,211,38036,454,00033,787,00029,642,752