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 16:19E SequeiraE SequeiraScore: 27,192Success
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 16:1926,882308,693,86892,567,00028,401,00029,663,232
2Dec 6, 2024 16:1926,936313,731,64787,598,00033,613,00029,609,984
3Dec 6, 2024 16:1926,951310,421,12895,922,00025,358,00029,724,672
4Dec 6, 2024 16:1926,951311,682,99091,752,00029,529,00029,626,368
5Dec 6, 2024 16:1927,192315,154,64481,890,00040,474,00029,515,776
6Dec 6, 2024 16:1927,230322,811,56492,700,00029,834,00029,696,000
7Dec 6, 2024 16:1927,302315,091,40696,531,00026,326,00029,528,064
8Dec 6, 2024 16:1927,310316,620,67582,884,00040,013,00029,552,640
9Dec 6, 2024 16:1927,314315,006,54489,111,00033,800,00029,609,984