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 12, 2021 22:27Yurkov AlekseyYurkov AlekseyScore: 16,992Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 12, 2021 22:279,68396,268,05843,571,27102,269,184
2Oct 12, 2021 22:279,717118,865,75743,727,54302,273,280
3Oct 12, 2021 22:279,727105,655,30743,773,67402,269,184
4Oct 12, 2021 22:2716,862261,514,34443,210,00032,671,00029,491,200
5Oct 12, 2021 22:2716,972264,157,72543,491,00032,883,00029,556,736
6Oct 12, 2021 22:2716,976259,996,92144,115,00032,279,00029,626,368
7Oct 12, 2021 22:2716,992259,916,96444,155,00032,308,00029,495,296
8Oct 12, 2021 22:2717,012269,834,78745,488,00031,065,00029,630,464
9Oct 12, 2021 22:2717,015265,073,31037,373,00039,196,00029,552,640
10Oct 12, 2021 22:2717,018266,536,26043,608,00032,971,00029,515,776
11Oct 12, 2021 22:2717,146265,918,74742,180,00034,978,00029,741,056
12Oct 12, 2021 22:2717,174263,848,02747,292,00029,990,00029,495,296