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 9, 2023 13:19Yuriy LyfenkoYuriy LyfenkoScore: 12,795Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2023 13:195,96785,513,14926,853,28302,244,608
2May 9, 2023 13:195,970110,078,65626,866,53202,244,608
3May 9, 2023 13:195,97592,143,76926,886,01302,252,800
4May 9, 2023 13:1912,720247,902,55522,521,00034,720,00029,732,864
5May 9, 2023 13:1912,759248,155,83323,168,00034,248,00029,671,424
6May 9, 2023 13:1912,766248,532,33926,113,00031,335,00029,544,448
7May 9, 2023 13:1912,795249,829,46222,848,00034,729,00029,671,424
8May 9, 2023 13:1912,818253,528,71726,218,00031,462,00029,515,776
9May 9, 2023 13:1912,855251,308,72227,766,00030,080,00029,671,424
10May 9, 2023 13:1912,862248,140,95823,544,00034,336,00029,675,520
11May 9, 2023 13:1912,871249,117,54322,968,00034,951,00029,577,216
12May 9, 2023 13:1912,988251,755,71326,566,00031,879,00029,675,520