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 7, 2023 15:36Bernard TeoBernard TeoScore: 30,234Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2023 15:3624,389172,414,808109,749,06102,277,376
2May 7, 2023 15:3624,390167,813,714109,754,87502,281,472
3May 7, 2023 15:3624,396168,674,569109,780,91702,269,184
4May 7, 2023 15:3630,148334,924,960106,364,00029,304,00029,515,776
5May 7, 2023 15:3630,206336,132,334100,884,00035,044,00029,634,560
6May 7, 2023 15:3630,234330,120,642106,074,00029,977,00029,732,864
7May 7, 2023 15:3630,234336,870,41599,630,00036,424,00029,609,984
8May 7, 2023 15:3630,289336,054,19499,755,00036,544,00029,569,024
9May 7, 2023 15:3630,310338,773,188101,232,00035,164,00029,720,576
10May 7, 2023 15:3630,311337,527,682102,301,00034,100,00029,728,768
11May 7, 2023 15:3630,328336,277,10598,681,00037,793,00029,552,640
12May 7, 2023 15:3630,347343,789,968103,157,00033,403,00029,736,960