import std.stdio;int[99]a;int*p,q,r;int f(int d){int b=0;for(r=q;r>&*a&(r+=d)