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 18:43Yuriy LyfenkoYuriy LyfenkoScore: 13,568Success
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 18:436,40494,630,58028,817,93902,256,896
2Oct 15, 2021 18:436,404106,803,47728,818,51802,260,992
3Oct 15, 2021 18:436,40793,154,71228,830,26602,244,608
4Oct 15, 2021 18:4313,414245,403,05228,647,00031,716,00029,548,544
5Oct 15, 2021 18:4313,478253,113,70526,126,00034,523,00029,515,776
6Oct 15, 2021 18:4313,540247,994,60330,465,00030,465,00029,663,232
7Oct 15, 2021 18:4313,568249,705,09531,659,00029,398,00029,577,216
8Oct 15, 2021 18:4313,647257,513,79330,168,00031,245,00029,466,624
9Oct 15, 2021 18:4313,694250,297,18430,270,00031,351,00029,573,120
10Oct 15, 2021 18:4313,797255,640,15227,593,00034,492,00029,712,384
11Oct 15, 2021 18:4313,802254,692,58128,508,00033,599,00029,708,288
12Oct 15, 2021 18:4313,811247,324,52927,509,00034,641,00029,544,448