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 listMay 3, 2024 16:29Joad NacerJoad NacerScore: 25,620Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2024 16:2920,310146,559,98591,395,84002,297,856
2May 3, 2024 16:2920,360153,607,62291,619,57102,293,760
3May 3, 2024 16:2720,363146,031,20691,631,25902,297,856
4May 3, 2024 16:2720,415157,807,44991,865,54902,289,664
5May 3, 2024 16:2720,416153,670,99991,870,05202,289,664
6May 3, 2024 16:2920,451160,976,75792,030,20402,281,472
7May 3, 2024 16:2925,352306,715,54243,951,00070,134,00029,589,504
8May 3, 2024 16:2725,414303,288,65749,903,00064,458,00029,478,912
9May 3, 2024 16:2725,524304,868,69447,528,00067,331,00029,560,832
10May 3, 2024 16:2925,530303,369,43349,679,00065,204,00029,679,616
11May 3, 2024 16:2725,575305,122,78244,864,00070,222,00029,483,008
12May 3, 2024 16:2925,600303,377,04344,594,00070,608,00029,560,832
13May 3, 2024 16:2725,620305,808,86147,706,00067,584,00029,573,120
14May 3, 2024 16:2725,672310,352,02648,479,00067,046,00029,687,808
15May 3, 2024 16:2725,676299,454,26249,964,00065,577,00029,585,408
16May 3, 2024 16:2725,683307,272,69152,436,00063,137,00029,569,024
17May 3, 2024 16:2925,703305,257,47551,996,00063,669,00029,683,712
18May 3, 2024 16:2725,704304,159,03049,876,00065,794,00029,470,720
19May 3, 2024 16:2925,879316,196,80549,310,00067,146,00029,667,328
20May 3, 2024 16:2925,913306,729,88346,643,00069,965,00029,581,312
21May 3, 2024 16:2925,943302,825,56551,411,00065,334,00029,663,232
22May 3, 2024 16:2926,007311,632,37452,386,00064,647,00029,564,928
23May 3, 2024 16:2926,203316,883,69749,928,00067,987,00029,556,736
24May 3, 2024 16:2726,250311,652,92453,384,00064,743,00029,564,928