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:23Ilya AniskovetsIlya AniskovetsScore: 14,896Success
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:237,60699,857,53434,226,41702,232,320
2Oct 15, 2021 07:237,63197,640,69534,341,10502,252,800
3Oct 15, 2021 07:237,734110,841,16234,804,82602,240,512
4Oct 15, 2021 07:2314,789251,404,22934,316,00032,236,00029,532,160
5Oct 15, 2021 07:2314,818256,672,94536,674,00030,006,00029,724,672
6Oct 15, 2021 07:2314,892257,184,67633,007,00034,007,00029,696,000
7Oct 15, 2021 07:2314,896256,240,08235,750,00031,281,00029,659,136
8Oct 15, 2021 07:2314,958253,792,02137,790,00029,523,00029,630,464
9Oct 15, 2021 07:2314,977251,877,23536,461,00030,936,00029,630,464
10Oct 15, 2021 07:2315,064256,106,63731,958,00035,832,00029,499,392
11Oct 15, 2021 07:2315,074263,711,31039,764,00028,069,00029,630,464
12Oct 15, 2021 07:2315,179255,589,56736,356,00031,949,00029,630,464