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 23:49Vitaliy F.Vitaliy F.Score: 43,141Success
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 23:4933,759229,902,429151,916,76802,244,608
2Oct 11, 2021 23:4933,759213,555,047151,916,76402,236,416
3Oct 11, 2021 23:4933,768213,336,005151,957,39802,240,512
4Oct 11, 2021 23:4942,953395,368,308163,314,00029,975,00029,569,024
5Oct 11, 2021 23:4943,057412,245,094158,437,00035,320,00029,569,024
6Oct 11, 2021 23:4943,063399,580,226165,792,00027,990,00029,573,120
7Oct 11, 2021 23:4943,141393,333,578162,507,00031,628,00029,659,136
8Oct 11, 2021 23:4943,185397,265,454168,627,00025,705,00029,741,056
9Oct 11, 2021 23:4943,210394,422,998159,945,00034,498,00029,609,984
10Oct 11, 2021 23:4943,217395,003,209151,934,00042,541,00029,609,984
11Oct 11, 2021 23:4943,229394,158,170160,327,00034,203,00029,605,888
12Oct 11, 2021 23:4943,275391,677,023157,013,00037,723,00029,642,752