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 11, 2021 00:48Yuriy LyfenkoYuriy LyfenkoScore: 17,364Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 00:4810,472102,136,52847,121,75502,252,800
2Oct 11, 2021 00:4810,473107,754,11647,126,26902,248,704
3Oct 11, 2021 00:4810,484109,994,81447,177,90502,256,896
4Oct 11, 2021 00:4817,194265,215,27143,647,00033,727,00029,655,040
5Oct 11, 2021 00:4817,330271,855,92442,893,00035,094,00029,708,288
6Oct 11, 2021 00:4817,347266,414,70347,052,00031,011,00029,708,288
7Oct 11, 2021 00:4817,364265,507,44345,664,00032,472,00029,663,232
8Oct 11, 2021 00:4817,379267,956,69042,482,00035,724,00029,667,328
9Oct 11, 2021 00:4817,409268,863,70244,766,00033,575,00029,671,424
10Oct 11, 2021 00:4817,447271,291,47043,181,00035,330,00029,663,232
11Oct 11, 2021 00:4817,497265,692,16347,457,00031,278,00029,577,216
12Oct 11, 2021 00:4817,735273,292,03147,664,00032,145,00029,474,816