Search found 2 matches

by limon limon
Wed Jul 10, 2002 9:52 am
Forum: Volume 5 (500-599)
Topic: 575 - Skew Binary
Replies: 18
Views: 6308

575 - Skew Binary

Anyone please say why? :o

[c]
#include<stdio.h>
#include<iostream.h>
#include<string.h>


void main(){

long power[32],test=1,count=0,val;
char num[35],n;
int len ,f;


power[1]=1;
power[2]=3;
power[3]=7;
power[4]=15;
power[5]=31;
power[6]=63;
power[7]=127;
power[8]=255;
power[9]=511;
power[10 ...
by limon limon
Tue Jul 09, 2002 10:50 am
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 54925

107 - The Cat in the Hat

///this code give tlme limit exceeds error




#include<stdio.h>
#include<iostream.h>

#include<math.h>




void main()
{
unsigned long n,h,f,x=1,hi,nw,test,total,power,stack,count;
float p,nwf,hif;






count=-1;
for(;x==1; ){
f=0;
count++;
scanf("%lu%lu",&h,&n) ;

test=1;
if(n==0&&h==0 ...

Go to advanced search