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 listMar 6, 2023 22:37ttScore: 109,990Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 6, 2023 22:37102,566527,154,175461,546,75202,191,360
2Mar 6, 2023 22:37102,698517,684,082462,140,71202,199,552
3Mar 6, 2023 22:37102,756514,098,134462,402,53702,187,264
4Mar 6, 2023 22:37109,909686,548,475452,256,00042,334,00029,765,632
5Mar 6, 2023 22:37109,936681,370,485442,693,00052,021,00029,532,160
6Mar 6, 2023 22:37109,967688,242,799454,122,00040,728,00029,650,944
7Mar 6, 2023 22:37109,990678,584,989453,711,00041,246,00029,569,024
8Mar 6, 2023 22:37109,998681,132,954448,036,00046,955,00029,540,352
9Mar 6, 2023 22:37110,072684,570,338439,288,00056,036,00029,597,696
10Mar 6, 2023 22:37110,174680,455,972450,173,00045,612,00029,540,352
11Mar 6, 2023 22:37110,202679,313,107438,382,00057,525,00029,564,928
12Mar 6, 2023 22:37110,287693,053,608442,503,00053,790,00029,732,864