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 listMay 6, 2023 18:08Bernard TeoBernard TeoScore: 27,914Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 6, 2023 18:0818,675154,894,00384,035,58202,277,376
2May 6, 2023 18:0818,694163,725,05384,122,23602,277,376
3May 6, 2023 18:0818,697154,511,77384,136,84402,281,472
4May 6, 2023 18:0827,781322,976,763100,218,00024,796,00029,548,544
5May 6, 2023 18:0827,802325,700,51294,910,00030,198,00029,556,736
6May 6, 2023 18:0827,830323,661,10990,818,00034,415,00029,556,736
7May 6, 2023 18:0827,914325,182,53882,401,00043,210,00029,728,768
8May 6, 2023 18:0827,935326,581,02993,767,00031,942,00029,601,792
9May 6, 2023 18:0827,974323,557,49891,455,00034,430,00029,601,792
10May 6, 2023 18:0827,982328,175,55481,595,00044,323,00029,634,560
11May 6, 2023 18:0828,063328,904,52892,241,00034,041,00029,638,656
12May 6, 2023 18:0834,255356,633,377128,823,00025,324,00029,720,576