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 17:00Yuriy LyfenkoYuriy LyfenkoScore: 13,259Success
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 17:005,98890,515,79026,946,27902,256,896
2Oct 16, 2021 17:005,991105,812,33926,960,87302,252,800
3Oct 16, 2021 17:005,99294,205,27026,964,83402,260,992
4Oct 16, 2021 17:0013,201250,008,27123,205,00036,200,00029,708,288
5Oct 16, 2021 17:0013,246245,731,40126,144,00033,464,00029,675,520
6Oct 16, 2021 17:0013,251254,951,36523,662,00035,966,00029,663,232
7Oct 16, 2021 17:0013,259242,560,20927,702,00031,964,00029,708,288
8Oct 16, 2021 17:0013,268257,911,59827,140,00032,568,00029,671,424
9Oct 16, 2021 17:0013,336250,386,61222,821,00037,190,00029,708,288
10Oct 16, 2021 17:0013,349253,303,89824,574,00035,497,00029,708,288
11Oct 16, 2021 17:0013,355253,269,45128,521,00031,577,00029,708,288
12Oct 16, 2021 17:0013,488252,181,90829,796,00030,900,00029,708,288