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 25, 2021 03:58Yuriy LyfenkoYuriy LyfenkoScore: 18,162Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 25, 2021 03:5810,665108,110,40147,990,81102,240,512
2Oct 25, 2021 03:5810,674116,199,23648,031,55502,240,512
3Oct 25, 2021 03:5810,681110,112,23848,064,41602,228,224
4Oct 25, 2021 03:5817,987267,770,69750,723,00030,218,00029,577,216
5Oct 25, 2021 03:5817,989272,356,97644,761,00036,190,00029,569,024
6Oct 25, 2021 03:5818,019264,593,71243,806,00037,281,00029,515,776
7Oct 25, 2021 03:5818,162269,251,05154,104,00027,627,00029,585,408
8Oct 25, 2021 03:5818,216273,234,92546,553,00035,421,00029,634,560
9Oct 25, 2021 03:5818,250272,420,49952,874,00029,249,00029,671,424
10Oct 25, 2021 03:5818,268268,601,79048,908,00033,299,00029,638,656
11Oct 25, 2021 03:5818,370273,672,16951,805,00030,862,00029,761,536
12Oct 25, 2021 03:5818,383274,506,65051,157,00031,565,00029,736,960