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 29, 2024 17:43AnSaAnSaScore: 22,669Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2024 17:4313,451134,547,61060,531,16002,281,472
2Jun 29, 2024 17:4313,460126,471,13060,570,23602,273,280
3Jun 29, 2024 17:4313,481130,600,25060,665,46102,277,376
4Jun 29, 2024 17:4322,173287,686,98856,125,00043,652,00029,663,232
5Jun 29, 2024 17:4322,341293,453,78169,441,00031,093,00029,634,560
6Jun 29, 2024 17:4322,557297,501,75964,964,00036,542,00029,630,464
7Jun 29, 2024 17:4322,669302,933,85073,209,00028,803,00029,499,392
8Jun 29, 2024 17:4322,720301,920,54869,612,00032,630,00029,630,464
9Jun 29, 2024 17:4322,725307,116,63560,479,00041,785,00029,655,040
10Jun 29, 2024 17:4322,738301,518,65362,894,00039,426,00029,753,344
11Jun 29, 2024 17:4322,762300,403,70764,147,00038,281,00029,732,864
12Jun 29, 2024 17:4322,782305,247,84160,629,00041,889,00029,634,560