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 6, 2024 19:09E SequeiraE SequeiraScore: 22,762Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2024 19:0922,416289,363,08166,914,00033,956,00029,757,440
2Dec 6, 2024 19:0922,498291,278,88771,403,00029,840,00029,765,632
3Dec 6, 2024 19:0922,672294,008,87372,267,00029,757,00029,659,136
4Dec 6, 2024 19:0922,752295,462,63169,291,00033,094,00029,761,536
5Dec 6, 2024 19:0922,762290,991,19468,616,00033,811,00029,663,232
6Dec 6, 2024 19:0922,875296,865,21368,625,00034,312,00029,503,488
7Dec 6, 2024 19:0922,965299,689,25270,653,00032,690,00029,626,368
8Dec 6, 2024 19:0923,060290,519,57872,422,00031,347,00029,663,232
9Dec 6, 2024 19:0923,066288,463,87169,199,00034,599,00029,523,968