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 14:57Yuriy LyfenkoYuriy LyfenkoScore: 15,432Success
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 14:578,149103,982,91336,672,06302,244,608
2Oct 15, 2021 14:578,15095,575,69636,674,70502,252,800
3Oct 15, 2021 14:578,153114,223,38136,690,70102,244,608
4Oct 15, 2021 14:5715,276262,852,35634,371,00034,371,00029,708,288
5Oct 15, 2021 14:5715,375259,438,73635,096,00034,093,00029,708,288
6Oct 15, 2021 14:5715,414266,554,86932,807,00036,556,00029,540,352
7Oct 15, 2021 14:5715,432255,997,24335,743,00033,701,00029,712,384
8Oct 15, 2021 14:5715,446265,128,66741,479,00028,026,00029,507,584
9Oct 15, 2021 14:5715,453260,650,85336,327,00033,213,00029,544,448
10Oct 15, 2021 14:5715,561266,965,84134,067,00035,959,00029,675,520
11Oct 15, 2021 14:5715,620257,517,71236,674,00033,617,00029,540,352
12Oct 15, 2021 14:5715,723259,926,68637,522,00033,233,00029,671,424