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 4, 2024 09:58Joad NacerJoad NacerScore: 24,936Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 4, 2024 09:5818,811138,393,08284,649,77102,289,664
2May 4, 2024 09:5818,925157,533,73485,160,53402,293,760
3May 4, 2024 09:5818,942152,366,62685,237,46502,293,760
4May 4, 2024 09:5824,596301,816,51745,514,00065,168,00029,581,312
5May 4, 2024 09:5824,798310,390,81452,920,00058,672,00029,683,712
6May 4, 2024 09:5824,889298,301,42043,611,00068,391,00029,655,040
7May 4, 2024 09:5824,936302,578,76541,145,00071,069,00029,663,232
8May 4, 2024 09:5825,129301,083,48950,258,00062,823,00029,605,888
9May 4, 2024 09:5825,224304,463,91748,965,00064,544,00029,515,776
10May 4, 2024 09:5825,369309,546,92446,311,00067,851,00029,478,912
11May 4, 2024 09:5825,371304,409,59346,948,00067,222,00029,614,080
12May 4, 2024 09:5825,662314,650,51354,130,00061,347,00029,573,120