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 3, 2024 16:43Joad NacerJoad NacerScore: 25,738Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2024 16:4320,174161,381,42990,783,74602,293,760
2May 3, 2024 16:4320,197160,379,06690,887,57602,297,856
3May 3, 2024 16:4320,239148,409,87391,073,38102,285,568
4May 3, 2024 16:4325,646308,482,22450,043,00065,362,00029,675,520
5May 3, 2024 16:4325,679304,334,72251,011,00064,544,00029,564,928
6May 3, 2024 16:4325,716303,443,79549,740,00065,982,00029,716,480
7May 3, 2024 16:4325,738303,223,57555,153,00060,669,00029,749,248
8May 3, 2024 16:4325,886306,323,14453,847,00062,638,00029,556,736
9May 3, 2024 16:4326,170310,978,28252,459,00065,306,00029,696,000
10May 3, 2024 16:4326,249306,307,57354,092,00064,027,00029,614,080
11May 3, 2024 16:4326,348305,413,73952,340,00066,227,00029,663,232
12May 3, 2024 16:4326,468314,678,68951,648,00067,459,00029,675,520