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 listJun 27, 2024 18:56AnSaAnSaScore: 31,306Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2024 18:5621,677164,963,68097,548,11902,277,376
2Jun 27, 2024 18:5621,706168,072,13897,675,35002,289,664
3Jun 27, 2024 18:5621,709155,918,02497,689,04902,281,472
4Jun 27, 2024 18:5631,175345,546,260103,091,00037,197,00029,552,640
5Jun 27, 2024 18:5631,194343,544,719106,036,00034,335,00029,597,696
6Jun 27, 2024 18:5631,270349,042,813106,318,00034,397,00029,663,232
7Jun 27, 2024 18:5631,306342,764,287111,619,00029,259,00029,478,912
8Jun 27, 2024 18:5631,312339,707,832105,680,00035,226,00029,630,464
9Jun 27, 2024 18:5631,324338,711,562110,677,00030,279,00029,532,160
10Jun 27, 2024 18:5631,327336,265,780111,917,00029,055,00029,663,232
11Jun 27, 2024 18:5631,408346,115,921111,197,00030,137,00029,630,464
12Jun 27, 2024 18:5631,638345,091,515105,231,00037,140,00029,528,064