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 18:02AnSaAnSaScore: 27,651Success
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 18:0218,658137,015,24083,959,85002,273,280
2Jun 29, 2024 18:0218,673140,260,19284,029,50602,277,376
3Jun 29, 2024 18:0218,695155,024,88484,126,06302,400,256
4Jun 29, 2024 18:0227,554325,478,35983,003,00040,989,00029,499,392
5Jun 29, 2024 18:0227,554323,266,60992,750,00031,242,00029,728,768
6Jun 29, 2024 18:0227,584322,442,86384,820,00039,306,00029,736,960
7Jun 29, 2024 18:0227,651325,802,38287,959,00036,471,00029,499,392
8Jun 29, 2024 18:0227,676322,104,15291,664,00032,879,00029,573,120
9Jun 29, 2024 18:0227,680326,298,56487,692,00036,870,00029,720,576
10Jun 29, 2024 18:0227,685323,095,35683,054,00041,527,00029,552,640
11Jun 29, 2024 18:0227,689328,738,44391,171,00033,429,00029,560,832
12Jun 29, 2024 18:0227,808326,312,83595,390,00029,745,00029,630,464