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 listDec 20, 2024 00:59Mikhail ShirokovMikhail ShirokovScore: 13,090Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 20, 2024 01:2013,01785,066,10958,577,00002,285,568
2Dec 20, 2024 01:2013,03485,986,14458,652,00002,375,680
3Dec 20, 2024 00:5913,03689,029,95257,649,0001,011,0002,285,568
4Dec 20, 2024 00:5913,05185,460,07357,717,0001,012,0002,285,568
5Dec 20, 2024 00:5913,07890,147,62356,858,0001,995,0002,285,568
6Dec 20, 2024 01:2013,08187,072,20656,868,0001,995,0002,285,568
7Dec 20, 2024 01:2013,08587,505,87857,885,000998,0002,285,568
8Dec 20, 2024 01:2013,08690,110,14257,887,000998,0002,260,992
9Dec 20, 2024 00:5913,08991,176,54057,902,000998,0002,285,568
10Dec 20, 2024 01:2013,09084,261,22156,907,0001,996,0002,285,568
11Dec 20, 2024 00:5913,09280,522,08356,915,0001,997,0002,269,184
12Dec 20, 2024 01:2013,09486,270,98256,925,0001,997,0002,277,376
13Dec 20, 2024 00:5913,11682,714,49457,022,0002,000,0002,285,568
14Dec 20, 2024 00:5913,12081,673,51057,038,0002,001,0002,285,568
15Dec 20, 2024 00:5913,13685,963,22957,108,0002,003,0002,519,040
16Dec 20, 2024 00:5913,14082,024,82257,124,0002,004,0002,265,088
17Dec 20, 2024 01:2013,14282,442,77657,135,0002,004,0002,269,184
18Dec 20, 2024 01:2013,20479,714,75458,411,0001,007,0002,379,776