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 23:27Yurkov AlekseyYurkov AlekseyScore: 16,442Success
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 23:279,229111,311,95841,529,11802,273,280
2Oct 15, 2021 23:279,275100,938,83441,738,49702,269,184
3Oct 15, 2021 23:279,288102,932,80741,795,85602,273,280
4Oct 15, 2021 23:2716,318262,164,38039,229,00034,200,00029,630,464
5Oct 15, 2021 23:2716,340258,125,76339,282,00034,246,00029,499,392
6Oct 15, 2021 23:2716,433265,372,89837,443,00036,507,00029,663,232
7Oct 15, 2021 23:2716,442259,724,76437,487,00036,500,00029,540,352
8Oct 15, 2021 23:2716,462264,348,63739,576,00034,502,00029,630,464
9Oct 15, 2021 23:2716,511260,199,98843,250,00031,051,00029,630,464
10Oct 15, 2021 23:2716,549263,786,57643,537,00030,934,00029,597,696
11Oct 15, 2021 23:2716,573261,927,14440,965,00033,612,00029,540,352
12Oct 15, 2021 23:2716,664269,151,54239,522,00035,468,00029,556,736