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:52Mikhail ShirokovMikhail ShirokovScore: 13,444Success
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 00:5213,34084,736,87759,030,0001,000,0002,285,568
2Dec 20, 2024 00:5213,35185,998,44558,078,0002,002,0002,285,568
3Dec 20, 2024 00:5213,35285,802,70259,081,0001,001,0002,273,280
4Dec 20, 2024 00:5213,35684,806,51659,099,0001,001,0002,285,568
5Dec 20, 2024 00:5213,36583,035,56558,137,0002,004,0002,519,040
6Dec 20, 2024 00:5213,36585,361,22858,137,0002,004,0002,285,568
7Dec 20, 2024 00:5213,36786,320,65258,147,0002,005,0002,285,568
8Dec 20, 2024 00:5213,40085,628,26458,289,0002,009,0002,265,088
9Dec 20, 2024 00:5213,42588,325,68959,406,0001,006,0002,273,280
10Dec 20, 2024 00:5213,44481,286,71859,490,0001,008,0002,285,568
11Dec 20, 2024 00:5213,45886,029,22559,553,0001,009,0002,285,568
12Dec 20, 2024 00:5213,45989,191,07559,557,0001,009,0002,285,568
13Dec 20, 2024 00:5213,46483,480,20858,601,0001,986,0002,277,376
14Dec 20, 2024 00:5213,47087,350,53459,606,0001,010,0002,265,088
15Dec 20, 2024 00:5213,47790,608,13559,638,0001,010,0002,285,568
16Dec 20, 2024 00:5213,48189,260,93060,666,00002,285,568
17Dec 20, 2024 00:5213,56583,329,65759,042,0002,001,0002,519,040
18Dec 20, 2024 00:5213,58283,676,90660,117,0001,001,0002,285,568