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 listDec 7, 2024 17:45E SequeiraE SequeiraScore: 20,908Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 7, 2024 17:4520,721281,927,88659,519,00033,727,00029,659,136
2Dec 7, 2024 17:4520,757281,713,76163,344,00030,061,00029,548,544
3Dec 7, 2024 17:4520,760293,714,85662,634,00030,786,00029,593,600
4Dec 7, 2024 17:4520,763282,471,84960,579,00032,856,00029,548,544
5Dec 7, 2024 17:4520,908283,921,85063,079,00031,005,00029,589,504
6Dec 7, 2024 17:4520,984281,435,18459,382,00035,045,00029,626,368
7Dec 7, 2024 17:4521,010282,697,16861,300,00033,247,00029,626,368
8Dec 7, 2024 17:4521,024288,995,83563,429,00031,177,00029,609,984
9Dec 7, 2024 17:4521,045288,674,99859,441,00035,261,00029,609,984