You are viewing a single comment's thread. Return to all comments →
cin >> m >> d; x[i]=(d/10*m)+(d%10); if((d/10)>m || (d%10)>m){x[i]=0;} for(int j=0;j
I'm getting timeout on cases 6-11, but I can't find a faster alg. Can someone help me?
Jim and the Jokes
You are viewing a single comment's thread. Return to all comments →
cin >> m >> d; x[i]=(d/10*m)+(d%10); if((d/10)>m || (d%10)>m){x[i]=0;} for(int j=0;j
I'm getting timeout on cases 6-11, but I can't find a faster alg. Can someone help me?