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 9, 2024 21:18Joad NacerJoad NacerScore: 15,547Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 21:186,83198,610,04530,737,65602,273,280
2May 9, 2024 21:186,83895,557,61630,771,99302,273,280
3May 9, 2024 21:187,07885,601,75431,852,69802,281,472
4May 9, 2024 21:1815,483260,286,72538,589,00031,085,00029,626,368
5May 9, 2024 21:1815,506254,266,13834,383,00035,394,00029,552,640
6May 9, 2024 21:1815,528257,369,50534,937,00034,937,00029,630,464
7May 9, 2024 21:1815,547261,100,34641,288,00028,672,00029,548,544
8May 9, 2024 21:1815,556256,486,81934,507,00035,493,00029,474,816
9May 9, 2024 21:1815,597257,793,98434,599,00035,587,00029,519,872
10May 9, 2024 21:1815,698257,460,65041,208,00029,434,00029,548,544
11May 9, 2024 21:1815,786259,887,64739,464,00031,571,00029,495,296
12May 9, 2024 21:1816,100267,120,11435,730,00036,722,00029,573,120