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 16:34AnSaAnSaScore: 22,732Success
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 16:3413,426118,279,61860,417,69302,273,280
2Jun 29, 2024 16:3413,436115,863,07860,460,17302,285,568
3Jun 29, 2024 16:3413,458115,305,06160,560,97802,285,568
4Jun 29, 2024 16:3422,160292,348,46757,932,00041,787,00029,663,232
5Jun 29, 2024 16:3422,519299,865,17267,558,00033,779,00029,761,536
6Jun 29, 2024 16:3422,730301,743,41758,590,00043,694,00029,630,464
7Jun 29, 2024 16:3422,732299,536,24263,030,00039,264,00029,581,312
8Jun 29, 2024 16:3422,860306,323,19565,838,00037,034,00029,495,296
9Jun 29, 2024 16:3422,866302,338,47262,588,00040,310,00029,495,296
10Jun 29, 2024 16:3422,876303,105,13267,520,00035,420,00029,663,232
11Jun 29, 2024 16:3422,878301,667,88164,821,00038,130,00029,630,464
12Jun 29, 2024 16:3422,946304,130,88771,487,00031,772,00029,728,768