Go Back   Forums > Members List
Memberlist Forum Rules Today's Posts
Search Forums:
Click here to use Advanced Search


Gabriel Hickmann Gabriel Hickmann is offline

Newbie

About Me

  • About Gabriel Hickmann
    Location
    ,
    Interests
    Old games, emulators, 3D anything.<br /><br />And I needed a place to put this foamy quote:<br />"Mi
  • Signature
    main(){long l[16],c,d,t;srand(time(0));for(t=d=c=0;c<16;c++){while( 1<<(l[c]=rand
    ()%16+1)&d);d|=1<<l[c];}for (;c>0;printf ("%2d ",l[--c]));do{printf("? ");scanf(
    "%d",&d);if(d>1&&d<=16){for (c=0;c<(d/2);c++){l[c]^=l[d-c-1];l[d-c-1]^=l[c];l[c]
    ^=l[d-c-1];}t++;}for(c=16;c>0;printf("%2d ",l[--c]));for(c=0;c<15&&l[c]>l[c+1];c
    ++);}while(d&&c<15);if(d)printf("\nYou won in %d moves!",t);} /*What is this?*/

Statistics

Total Posts
General Information
  • Last Activity: 11-11-2007 01:43 PM
  • Join Date: 02-05-2005
  • Referrals: 0

The current time is 12:15 PM (GMT)

 
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.