Search found 2 matches

by Atish
Thu Nov 03, 2011 9:44 pm
Forum: Volume 101 (10100-10199)
Topic: 10190 - Divide, But Not Quite Conquer!
Replies: 105
Views: 38901

Re: 10190

Whenever I submitt 10190, it says "output limit exceeded". I don't understand where is the problem. My code is like this:

#include<stdio.h>
#include<math.h>

void main()
{
long m,n,result;

for(;(scanf("%ld %ld",&m,&n))==2;)
{
if((ceil(logl(m)/logl(n))) == (floor(logl(m)/logl(n)))) // you ...
by Atish
Thu Nov 03, 2011 9:41 pm
Forum: Volume 101 (10100-10199)
Topic: 10190 - Divide, But Not Quite Conquer!
Replies: 105
Views: 38901

Re: 10190 - Divide, But Not Quite Conquer!

if(n>=n&&n!=0&&m!=0&&m!=1&&n!=1) just use this condition and check your printf

Go to advanced search