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 28, 2024 15:12AnSaAnSaScore: 23,767Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2024 15:1214,591151,458,95265,657,46802,301,952
2Jun 28, 2024 15:1214,595128,564,08965,677,28102,285,568
3Jun 28, 2024 15:1214,604133,512,31465,718,06302,285,568
4Jun 28, 2024 15:1223,188290,808,27866,014,00038,330,00029,556,736
5Jun 28, 2024 15:1223,305296,091,63278,655,00026,218,00029,618,176
6Jun 28, 2024 15:1223,512306,554,34463,293,00042,510,00029,720,576
7Jun 28, 2024 15:1223,767309,834,81773,067,00033,886,00029,614,080
8Jun 28, 2024 15:1223,818302,042,40267,944,00039,235,00029,630,464
9Jun 28, 2024 15:1223,829308,463,23169,502,00037,730,00029,597,696
10Jun 28, 2024 15:1223,901307,706,61871,359,00036,197,00029,663,232
11Jun 28, 2024 15:1223,958305,268,68176,102,00031,709,00029,630,464
12Jun 28, 2024 15:1224,132308,861,10170,690,00037,906,00029,552,640