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 12, 2023 21:55Victor MuñozVictor MuñozScore: 10,946Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2023 21:553,44379,902,25815,493,89002,252,800
2Jun 12, 2023 21:553,45193,901,35915,530,06902,256,896
3Jun 12, 2023 21:553,46884,956,73315,604,84202,256,896
4Jun 12, 2023 21:5510,748239,680,64014,882,00033,485,00029,675,520
5Jun 12, 2023 21:5510,808237,909,88213,765,00034,873,00029,544,448
6Jun 12, 2023 21:5510,942241,374,41617,508,00031,733,00029,732,864
7Jun 12, 2023 21:5510,946240,338,24914,488,00034,771,00029,675,520
8Jun 12, 2023 21:5511,044245,528,59018,071,00031,625,00029,548,544
9Jun 12, 2023 21:5511,070240,628,07218,353,00031,463,00029,708,288
10Jun 12, 2023 21:5511,074237,509,78119,447,00030,387,00029,700,096
11Jun 12, 2023 21:5511,112239,447,18015,958,00034,044,00029,675,520
12Jun 12, 2023 21:5511,161246,487,94817,121,00033,102,00029,708,288