Cody

# Problem 326. Tricky timing

Solution 419643

Submitted on 18 Mar 2014 by James
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
%% tic; y=foo(1); t2=toc assert((t2>.5)&&(t2<.6))

Elapsed time is 0.000451 seconds. Elapsed time is 0.053885 seconds. Elapsed time is 0.053909 seconds. Elapsed time is 0.053926 seconds. Elapsed time is 0.053943 seconds. Elapsed time is 0.053958 seconds. Elapsed time is 0.053990 seconds. Elapsed time is 0.054019 seconds. Elapsed time is 0.054037 seconds. Elapsed time is 0.054053 seconds. Elapsed time is 0.054069 seconds. Elapsed time is 0.054085 seconds. Elapsed time is 0.054101 seconds. Elapsed time is 0.054117 seconds. Elapsed time is 0.054133 seconds. Elapsed time is 0.054149 seconds. Elapsed time is 0.054167 seconds. Elapsed time is 0.054183 seconds. Elapsed time is 0.054199 seconds. Elapsed time is 0.054215 seconds. Elapsed time is 0.054231 seconds. Elapsed time is 0.054246 seconds. Elapsed time is 0.054262 seconds. Elapsed time is 0.054278 seconds. Elapsed time is 0.054293 seconds. Elapsed time is 0.054309 seconds. Elapsed time is 0.054325 seconds. Elapsed time is 0.054341 seconds. Elapsed time is 0.054357 seconds. Elapsed time is 0.054373 seconds. Elapsed time is 0.054388 seconds. Elapsed time is 0.054408 seconds. Elapsed time is 0.054424 seconds. Elapsed time is 0.054441 seconds. Elapsed time is 0.054457 seconds. Elapsed time is 0.054472 seconds. Elapsed time is 0.054488 seconds. Elapsed time is 0.054503 seconds. Elapsed time is 0.054519 seconds. Elapsed time is 0.054535 seconds. Elapsed time is 0.054550 seconds. Elapsed time is 0.054566 seconds. Elapsed time is 0.054582 seconds. Elapsed time is 0.054597 seconds. Elapsed time is 0.054613 seconds. Elapsed time is 0.054629 seconds. Elapsed time is 0.054645 seconds. Elapsed time is 0.054660 seconds. Elapsed time is 0.054676 seconds. Elapsed time is 0.054691 seconds. Elapsed time is 0.054707 seconds. Elapsed time is 0.054723 seconds. Elapsed time is 0.054738 seconds. Elapsed time is 0.054754 seconds. Elapsed time is 0.054769 seconds. Elapsed time is 0.054785 seconds. Elapsed time is 0.054801 seconds. Elapsed time is 0.054816 seconds. Elapsed time is 0.054832 seconds. Elapsed time is 0.054847 seconds. Elapsed time is 0.054863 seconds. Elapsed time is 0.054879 seconds. Elapsed time is 0.054894 seconds. Elapsed time is 0.054910 seconds. Elapsed time is 0.054926 seconds. Elapsed time is 0.054941 seconds. Elapsed time is 0.054957 seconds. Elapsed time is 0.054973 seconds. Elapsed time is 0.054988 seconds. Elapsed time is 0.055004 seconds. Elapsed time is 0.055019 seconds. Elapsed time is 0.055035 seconds. Elapsed time is 0.055051 seconds. Elapsed time is 0.055067 seconds. Elapsed time is 0.055083 seconds. Elapsed time is 0.055101 seconds. Elapsed time is 0.055130 seconds. Elapsed time is 0.055150 seconds. Elapsed time is 0.055167 seconds. Elapsed time is 0.055183 seconds. Elapsed time is 0.055199 seconds. Elapsed time is 0.055215 seconds. Elapsed time is 0.055230 seconds. Elapsed time is 0.055246 seconds. Elapsed time is 0.055262 seconds. Elapsed time is 0.055277 seconds. Elapsed time is 0.055293 seconds. Elapsed time is 0.055309 seconds. Elapsed time is 0.055324 seconds. Elapsed time is 0.055340 seconds. Elapsed time is 0.055356 seconds. Elapsed time is 0.055371 seconds. Elapsed time is 0.055387 seconds. Elapsed time is 0.055403 seconds. Elapsed time is 0.055418 seconds. Elapsed time is 0.055435 seconds. Elapsed time is 0.055463 seconds. Elapsed time is 0.055489 seconds. Elapsed time is 0.055507 seconds. Elapsed time is 0.055523 seconds. Elapsed time is 0.055539 seconds. Elapsed time is 0.055554 seconds. Elapsed time is 0.055570 seconds. Elapsed time is 0.055586 seconds. Elapsed time is 0.055601 seconds. Elapsed time is 0.055617 seconds. Elapsed time is 0.055632 seconds. Elapsed time is 0.055648 seconds. Elapsed time is 0.055664 seconds. Elapsed time is 0.055680 seconds. Elapsed time is 0.055695 seconds. Elapsed time is 0.055711 seconds. Elapsed time is 0.055739 seconds. Elapsed time is 0.055756 seconds. Elapsed time is 0.055771 seconds. Elapsed time is 0.055787 seconds. Elapsed time is 0.055803 seconds. Elapsed time is 0.055818 seconds. Elapsed time is 0.055833 seconds. Elapsed time is 0.055849 seconds. Elapsed time is 0.055875 seconds. Elapsed time is 0.055892 seconds. Elapsed time is 0.055908 seconds. Elapsed time is 0.055924 seconds. Elapsed time is 0.055940 seconds. Elapsed time is 0.055956 seconds. Elapsed time is 0.055971 seconds. Elapsed time is 0.055987 seconds. Elapsed time is 0.056003 seconds. Elapsed time is 0.056018 seconds. Elapsed time is 0.056034 seconds. Elapsed time is 0.056049 seconds. Elapsed time is 0.056065 seconds. Elapsed time is 0.056081 seconds. Elapsed time is 0.056096 seconds. Elapsed time is 0.056112 seconds. Elapsed time is 0.056127 seconds. Elapsed time is 0.056143 seconds. Elapsed time is 0.056158 seconds. Elapsed time is 0.056174 seconds. Elapsed time is 0.056189 seconds. Elapsed time is 0.056205 seconds. Elapsed time is 0.056225 seconds. Elapsed time is 0.056254 seconds. Elapsed time is 0.056273 seconds. Elapsed time is 0.056289 seconds. Elapsed time is 0.056305 seconds. Elapsed time is 0.056321 seconds. Elapsed time is 0.056337 seconds. Elapsed time is 0.056352 seconds. Elapsed time is 0.056368 seconds. Elapsed time is 0.056383 seconds. Elapsed time is 0.056399 seconds. Elapsed time is 0.056414 seconds. Elapsed time is 0.056430 seconds. Elapsed time is 0.056446 seconds. Elapsed time is 0.056461 seconds. Elapsed time is 0.056477 seconds. Elapsed time is 0.056492 seconds. Elapsed time is 0.056508 seconds. Elapsed time is 0.056523 seconds. Elapsed time is 0.056539 seconds. Elapsed time is 0.056554 seconds. Elapsed time is 0.056570 seconds. Elapsed time is 0.056585 seconds. Elapsed time is 0.056601 seconds. Elapsed time is 0.056617 seconds. Elapsed time is 0.056632 seconds. Elapsed time is 0.056648 seconds. Elapsed time is 0.056663 seconds. Elapsed time is 0.056679 seconds. Elapsed time is 0.056695 seconds. Elapsed time is 0.056721 seconds. Elapsed time is 0.056746 seconds. Elapsed time is 0.056763 seconds. Elapsed time is 0.056779 seconds. Elapsed time is 0.056795 seconds. Elapsed time is 0.056810 seconds. Elapsed time is 0.056826 seconds. Elapsed time is 0.056842 seconds. Elapsed time is 0.056857 seconds. Elapsed time is 0.056873 seconds. Elapsed time is 0.056888 seconds. Elapsed time is 0.056903 seconds. Elapsed time is 0.056918 seconds. Elapsed time is 0.056934 seconds. Elapsed time is 0.056949 seconds. Elapsed time is 0.056965 seconds. Elapsed time is 0.056980 seconds. Elapsed time is 0.056996 seconds. Elapsed time is 0.057011 seconds. Elapsed time is 0.057027 seconds. Elapsed time is 0.057042 seconds. Elapsed time is 0.057058 seconds. Elapsed time is 0.057073 seconds. Elapsed time is 0.057089 seconds. Elapsed time is 0.057104 seconds. Elapsed time is 0.057119 seconds. Elapsed time is 0.057135 seconds. Elapsed time is 0.057150 seconds. Elapsed time is 0.057166 seconds. Elapsed time is 0.057181 seconds. Elapsed time is 0.057197 seconds. Elapsed time is 0.057212 seconds. Elapsed time is 0.057228 seconds. Elapsed time is 0.057243 seconds. Elapsed time is 0.057258 seconds. Elapsed time is 0.057274 seconds. Elapsed time is 0.057289 seconds. Elapsed time is 0.057304 seconds. Elapsed time is 0.057320 seconds. Elapsed time is 0.057335 seconds. Elapsed time is 0.057361 seconds. Elapsed time is 0.057386 seconds. Elapsed time is 0.057402 seconds. Elapsed time is 0.057418 seconds. Elapsed time is 0.057433 seconds. Elapsed time is 0.057449 seconds. Elapsed time is 0.057464 seconds. Elapsed time is 0.057480 seconds. Elapsed time is 0.057496 seconds. Elapsed time is 0.057511 seconds. Elapsed time is 0.057526 seconds. Elapsed time is 0.057542 seconds. Elapsed time is 0.057557 seconds. Elapsed time is 0.057572 seconds. Elapsed time is 0.057587 seconds. Elapsed time is 0.057602 seconds. Elapsed time is 0.057618 seconds. Elapsed time is 0.057633 seconds. Elapsed time is 0.057649 seconds. Elapsed time is 0.057664 seconds. Elapsed time is 0.057679 seconds. Elapsed time is 0.057694 seconds. Elapsed time is 0.057709 seconds. Elapsed time is 0.057725 seconds. Elapsed time is 0.057740 seconds. Elapsed time is 0.057755 seconds. Elapsed time is 0.057771 seconds. Elapsed time is 0.057786 seconds. Elapsed time is 0.057802 seconds. Elapsed time is 0.057824 seconds. Elapsed time is 0.057842 seconds. Elapsed time is 0.057857 seconds. Elapsed time is 0.057873 seconds. Elapsed time is 0.057888 seconds. Elapsed time is 0.057903 seconds. Elapsed time is 0.057919 seconds. Elapsed time is 0.057934 seconds. Elapsed time is 0.057949 seconds. Elapsed time is 0.057965 seconds. Elapsed time is 0.057981 seconds. Elapsed time is 0.057996 seconds. Elapsed time is 0.058012 seconds. Elapsed time is 0.058027 seconds. Elapsed time is 0.058042 seconds. Elapsed time is 0.058057 seconds. Elapsed time is 0.058072 seconds. Elapsed time is 0.058088 seconds. Elapsed time is 0.058104 seconds. Elapsed time is 0.058119 seconds. Elapsed time is 0.058134 seconds. Elapsed time is 0.058150 seconds. Elapsed time is 0.058166 seconds. Elapsed time is 0.058181 seconds. Elapsed time is 0.058197 seconds. Elapsed time is 0.058213 seconds. Elapsed time is 0.058228 seconds. Elapsed time is 0.058243 seconds. Elapsed time is 0.058259 seconds. Elapsed time is 0.058274 seconds. Elapsed time is 0.058289 seconds. Elapsed time is 0.058305 seconds. Elapsed time is 0.058320 seconds. Elapsed time is 0.058335 seconds. Elapsed time is 0.058351 seconds. Elapsed time is 0.058366 seconds. Elapsed time is 0.058382 seconds. Elapsed time is 0.058397 seconds. Elapsed time is 0.058412 seconds. Elapsed time is 0.058428 seconds. Elapsed time is 0.058443 seconds. Elapsed time is 0.058458 seconds. Elapsed time is 0.058485 seconds. Elapsed time is 0.058507 seconds. Elapsed time is 0.058523 seconds. Elapsed time is 0.058539 seconds. Elapsed time is 0.058555 seconds. Elapsed time is 0.058570 seconds. Elapsed time is 0.058585 seconds. Elapsed time is 0.058601 seconds. Elapsed time is 0.058616 seconds. Elapsed time is 0.058632 seconds. Elapsed time is 0.058647 seconds. Elap...