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 listOct 15, 2021 07:03Ilya AniskovetsIlya AniskovetsScore: 17,540Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 07:0310,207104,851,65745,931,23802,260,992
2Oct 15, 2021 07:0310,223102,418,25746,001,91002,260,992
3Oct 15, 2021 07:0310,392118,593,12946,762,71502,269,184
4Oct 15, 2021 07:0317,512264,604,79541,834,00036,969,00029,638,656
5Oct 15, 2021 07:0317,520270,719,81241,853,00036,986,00029,593,600
6Oct 15, 2021 07:0317,524272,018,71844,618,00034,241,00029,724,672
7Oct 15, 2021 07:0317,540271,593,46144,079,00034,853,00029,696,000
8Oct 15, 2021 07:0317,556266,419,78342,390,00036,610,00029,614,080
9Oct 15, 2021 07:0317,585279,215,41648,534,00030,598,00029,667,328
10Oct 15, 2021 07:0317,597266,924,60347,730,00031,458,00029,663,232
11Oct 15, 2021 07:0317,673268,631,87545,882,00033,647,00029,626,368
12Oct 15, 2021 07:0317,810261,318,82743,452,00036,693,00029,532,160