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 10, 2024 05:48Yuriy LyfenkoYuriy LyfenkoScore: 10,427Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 10, 2024 05:489,998828,161,49514,997,00029,995,00029,552,640
2Dec 10, 2024 05:4810,120828,730,22212,082,00033,460,00029,712,384
3Dec 10, 2024 05:4810,190834,029,55012,227,00033,626,00029,614,080
4Dec 10, 2024 05:4810,191831,805,34612,797,00033,061,00029,757,440
5Dec 10, 2024 05:4810,262831,887,47713,050,00033,128,00029,720,576
6Dec 10, 2024 05:4810,347838,603,65012,698,00033,863,00029,646,848
7Dec 10, 2024 05:4810,427837,066,52111,261,00035,661,00029,581,312
8Dec 10, 2024 05:4810,431844,062,33414,191,00032,749,00029,626,368
9Dec 10, 2024 05:4810,480832,325,15314,148,00033,013,00029,757,440
10Dec 10, 2024 05:4810,555829,424,33913,423,00034,074,00029,720,576
11Dec 10, 2024 05:4810,586839,578,09511,909,00035,728,00029,712,384
12Dec 10, 2024 05:4810,764833,577,39914,992,00033,445,00029,757,440