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 07:22Ilya AniskovetsIlya AniskovetsScore: 14,882Success
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 07:227,56495,294,87434,037,55802,256,896
2Oct 15, 2021 07:227,649104,362,61934,420,41002,240,512
3Oct 15, 2021 07:227,658121,040,57734,458,99402,244,608
4Oct 15, 2021 07:2214,815256,610,78331,841,00034,826,00029,667,328
5Oct 15, 2021 07:2214,831252,559,82832,856,00033,882,00029,704,192
6Oct 15, 2021 07:2214,862250,380,32032,427,00034,453,00029,634,560
7Oct 15, 2021 07:2214,882251,667,12332,969,00033,999,00029,671,424
8Oct 15, 2021 07:2214,890255,834,93935,735,00031,268,00029,634,560
9Oct 15, 2021 07:2215,013257,100,05830,884,00036,675,00029,634,560
10Oct 15, 2021 07:2215,018254,929,43834,880,00032,700,00029,499,392
11Oct 15, 2021 07:2215,083262,397,85234,475,00033,398,00029,700,096
12Oct 15, 2021 07:2215,114261,988,33432,976,00035,037,00029,519,872