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 7, 2023 09:43Bernard TeoBernard TeoScore: 13,493Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2023 09:437,521109,130,34633,845,50802,256,896
2May 7, 2023 09:437,529124,323,71433,879,58802,269,184
3May 7, 2023 09:437,547103,731,20633,963,73902,273,280
4May 7, 2023 09:4313,351247,308,90023,314,00036,765,00029,687,808
5May 7, 2023 09:4313,386245,511,69223,903,00036,333,00029,687,808
6May 7, 2023 09:4313,411244,953,11926,282,00034,069,00029,716,480
7May 7, 2023 09:4313,493258,606,81323,131,00037,588,00029,655,040
8May 7, 2023 09:4313,569251,057,83622,545,00038,516,00029,687,808
9May 7, 2023 09:4313,590258,412,86632,309,00028,847,00029,687,808
10May 7, 2023 09:4313,754262,199,87023,873,00038,020,00029,560,832
11May 7, 2023 09:4313,859257,708,65619,489,00042,877,00029,679,616
12May 7, 2023 09:4314,041265,778,17829,388,00033,796,00029,655,040