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:47Yuriy LyfenkoYuriy LyfenkoScore: 13,687Success
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:476,63087,699,56529,833,22302,265,088
2Oct 15, 2021 18:476,632112,367,98029,842,03002,252,800
3Oct 15, 2021 18:476,63583,103,72429,858,19902,260,992
4Oct 15, 2021 18:4713,589248,916,22126,467,00034,682,00029,544,448
5Oct 15, 2021 18:4713,654244,261,43125,922,00035,523,00029,540,352
6Oct 15, 2021 18:4713,685249,489,96727,475,00034,107,00029,708,288
7Oct 15, 2021 18:4713,687257,742,84125,196,00036,395,00029,544,448
8Oct 15, 2021 18:4713,700253,127,85628,770,00032,880,00029,573,120
9Oct 15, 2021 18:4713,702253,754,16229,263,00032,398,00029,659,136
10Oct 15, 2021 18:4713,703249,120,72229,805,00031,860,00029,736,960
11Oct 15, 2021 18:4713,721253,659,66130,872,00030,872,00029,667,328
12Oct 15, 2021 18:4713,781252,963,46128,379,00033,635,00029,544,448