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 8, 2023 03:18Yuriy LyfenkoYuriy LyfenkoScore: 12,900Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2023 03:185,26492,793,23723,687,39502,265,088
2May 8, 2023 03:185,27091,091,40623,713,41002,281,472
3May 8, 2023 03:185,27193,886,27923,720,52502,273,280
4May 8, 2023 03:1812,825245,266,75626,548,00031,165,00029,540,352
5May 8, 2023 03:1812,856244,926,55522,942,00034,912,00029,560,832
6May 8, 2023 03:1812,876243,022,59125,145,00032,798,00029,663,232
7May 8, 2023 03:1812,900251,390,83123,614,00034,437,00029,593,600
8May 8, 2023 03:1812,901243,759,98423,792,00034,261,00029,552,640
9May 8, 2023 03:1812,934249,034,21628,507,00029,695,00029,663,232
10May 8, 2023 03:1812,965248,452,60831,708,00026,635,00029,528,064
11May 8, 2023 03:1813,043247,522,34826,085,00032,607,00029,630,464
12May 8, 2023 03:1813,080242,560,31823,943,00034,916,00029,552,640