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 21, 2023 14:50Bernard TeoBernard TeoScore: 21,019Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2023 14:5012,508125,857,43856,285,26602,273,280
2May 21, 2023 14:5012,526120,978,71456,364,83602,277,376
3May 21, 2023 14:5012,555117,231,19156,497,99002,281,472
4May 21, 2023 14:5020,356276,176,93958,668,00032,936,00029,552,640
5May 21, 2023 14:5020,652281,848,82159,140,00033,794,00029,552,640
6May 21, 2023 14:5020,982293,250,30654,895,00039,524,00029,732,864
7May 21, 2023 14:5021,019286,320,10160,456,00034,128,00029,605,888
8May 21, 2023 14:5021,055296,661,83661,484,00033,262,00029,552,640
9May 21, 2023 14:5021,058292,782,79561,047,00033,712,00029,691,904
10May 21, 2023 14:5021,176294,638,25149,631,00045,660,00029,638,656
11May 21, 2023 14:5021,246294,095,48455,195,00040,410,00029,605,888
12May 21, 2023 14:5021,392297,500,18461,155,00035,108,00029,540,352