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 15, 2024 22:36Joad NacerJoad NacerScore: 13,117Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 15, 2024 22:365,633109,978,08025,347,19302,277,376
2May 15, 2024 22:365,70690,822,87425,675,42002,285,568
3May 15, 2024 22:365,713100,797,56225,708,16402,273,280
4May 15, 2024 22:3612,950244,138,09325,430,00032,847,00029,630,464
5May 15, 2024 22:3612,954249,211,65522,934,00035,357,00029,532,160
6May 15, 2024 22:3613,000242,409,85723,400,00035,101,00029,597,696
7May 15, 2024 22:3613,117246,043,29723,610,00035,416,00029,749,248
8May 15, 2024 22:3613,124246,987,69823,237,00035,823,00029,663,232
9May 15, 2024 22:3613,133248,217,89624,455,00034,645,00029,687,808
10May 15, 2024 22:3613,166243,585,17026,931,00032,317,00029,499,392
11May 15, 2024 22:3613,198245,504,94926,396,00032,995,00029,630,464
12May 15, 2024 22:3613,240252,397,13025,856,00033,725,00029,552,640