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 16, 2021 10:25Ilya AniskovetsIlya AniskovetsScore: 14,585Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 10:257,074103,245,71531,833,56302,277,376
2Oct 16, 2021 10:257,10596,700,19131,971,15302,285,568
3Oct 16, 2021 10:257,165103,601,00632,240,38202,273,280
4Oct 16, 2021 10:2514,428253,892,06329,072,00035,856,00029,536,256
5Oct 16, 2021 10:2514,453252,532,40528,803,00036,236,00029,642,752
6Oct 16, 2021 10:2514,473253,455,29132,047,00033,081,00029,618,176
7Oct 16, 2021 10:2514,585247,455,07029,833,00035,799,00029,556,736
8Oct 16, 2021 10:2514,606248,541,36635,746,00029,981,00029,503,488
9Oct 16, 2021 10:2514,699254,872,74630,529,00035,617,00029,683,712
10Oct 16, 2021 10:2514,718254,683,96534,218,00032,011,00029,761,536
11Oct 16, 2021 10:2514,790259,694,12131,742,00034,814,00029,483,008
12Oct 16, 2021 10:2514,933253,064,51033,066,00034,133,00029,634,560