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 11, 2023 23:47Victor MuñozVictor MuñozScore: 11,813Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2023 23:474,12799,935,34718,572,65202,265,088
2Jun 11, 2023 23:474,13893,396,32118,620,20902,269,184
3Jun 11, 2023 23:474,14790,596,77718,659,29502,265,088
4Jun 11, 2023 23:4711,60574,289,99817,072,00035,149,00029,585,408
5Jun 11, 2023 23:4711,72786,957,70019,914,00032,859,00029,646,848
6Jun 11, 2023 23:4711,79176,010,90922,448,00030,611,00029,663,232
7Jun 11, 2023 23:4711,81380,719,28021,063,00032,097,00029,548,544
8Jun 11, 2023 23:4711,87875,914,80122,188,00031,265,00029,544,448
9Jun 11, 2023 23:4711,89379,627,39324,234,00029,283,00029,601,792
10Jun 11, 2023 23:4711,92283,280,03124,295,00029,356,00029,556,736
11Jun 11, 2023 23:4711,93084,979,25320,259,00033,428,00029,560,832
12Jun 11, 2023 23:4711,99877,205,89824,996,00028,996,00029,548,544