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 listOct 16, 2021 09:59Ilya AniskovetsIlya AniskovetsScore: 14,555Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 09:597,119104,820,83032,036,74702,252,800
2Oct 16, 2021 09:597,154101,816,55432,193,07902,281,472
3Oct 16, 2021 09:597,20696,899,96632,426,84702,252,800
4Oct 16, 2021 09:5914,356251,072,75434,000,00030,600,00029,630,464
5Oct 16, 2021 09:5914,444251,765,86429,544,00035,453,00029,556,736
6Oct 16, 2021 09:5914,551253,608,81427,667,00037,811,00029,573,120
7Oct 16, 2021 09:5914,555255,077,61830,701,00034,795,00029,732,864
8Oct 16, 2021 09:5914,555258,078,07333,285,00032,211,00029,757,440
9Oct 16, 2021 09:5914,572254,343,21131,730,00033,846,00029,507,584
10Oct 16, 2021 09:5914,595259,102,39029,408,00036,270,00029,499,392
11Oct 16, 2021 09:5914,602255,112,38030,327,00035,382,00029,544,448
12Oct 16, 2021 09:5914,706256,795,67534,830,00031,347,00029,523,968