Ray Jones Posted May 13, 2005 Share Posted May 13, 2005 Huh? But GJD nearly wins the poll!! Link to comment Share on other sites More sharing options...
DrMcCoy Posted May 13, 2005 Share Posted May 13, 2005 Originally posted by Das Mole I love how absolutely all the content here has the potential to get completely derailed. ...Me too... Link to comment Share on other sites More sharing options...
RicardoLuigi... Posted May 13, 2005 Author Share Posted May 13, 2005 Heh, I like that if(!strcmp...)... in your sig MickeyKoi I actually get it! Wow...now I'm taking part in the derailification of this thread...gah! Link to comment Share on other sites More sharing options...
DrMcCoy Posted May 13, 2005 Share Posted May 13, 2005 Originally posted by Das Mole Heh, I like that if(!strcmp...)... in your sig MickeyKoi ..."MickeyKoi"? "MICKEYKOI??" *angry stare* Originally posted by Das Mole I actually get it! ...Ayeah? Well, OK, then tell me, what does strcmp do? And what are its return values? And what does the "!" do (Or why are the "!"s needed regarding strcmp's return values)? ...I'm waiting! Link to comment Share on other sites More sharing options...
Ray Jones Posted May 13, 2005 Share Posted May 13, 2005 Das, he likes to get called "Pille" a lot. Also.. err really blind blind guess (I really really don't speak c .. ) strcmp compares strings, returns a byte value and ! makes it boolean. && is for a logical AND. .. Or strcmp returns booleans and ! stands for a logical NOT. Regarding to the code, the first assumption would make more sense actually.. ?? OK, now you, Pille. int m=754974721,N,t[1<<24],a,*p,i,e=30295789,j,s,b,c,U;f(d){for(s=1<<23;s;s/=2,d= d*1LL*d%m)if(s<N)for(p=t;p<t+N;p+=s)for(i=s,c=1;i;i--)b=*p+p[s],p[s]=(m+*p-p[s]) *1LL*c%m,*p++=b%m,c=c*1LL*d%m;for(j=0;i<N-1;){for(s=N/2;!((j^=s)&s);s/=2);if(++i <j)a=t[i],t[i]=t[j],t[j]=a;}}main(){*t=2;U=N=1;while(e/=2){N*=2;U=U*1LL*(m+1)/2% m;f(362);for(p=t;p<t+N;)*p++=*p*1LL**p%m*U%m;f(415027540);for(a=0,p=t;p<t+N;)a+= *p<<(e&1),*p++=a%10,a/=10;}while(!*--p);t[0]--;while(p>=t)printf("%d",*p--);} What's this? (except for a sucky text wrapper .. ) Link to comment Share on other sites More sharing options...
DrMcCoy Posted May 13, 2005 Share Posted May 13, 2005 Originally posted by RayJones Das, he likes to get called "Pille" a lot. ...Yep... ... ...Quite... strcmp compares strings and returns 0 when they're equal... There isn't an explicit boolean-type, 0 is false and everything is is true. Since strcmp returns 0 (false) on equality, the "!" is needed to negate it. The "&&" is logical AND... So if(!strcmp(nick, "DrMcCoy") && !strcmp(avatar, "Spock")) return E_INSANE; resolves in my case to if(!false && !false) return E_INSANE; resolves to if(true && true) return E_INSANE; resolves to return E_INSANE; Originally posted by RayJones OK, now you, Pille. Originally posted by RayJones int m=754974721,N,t[1<<24],a,*p,i,e=30295789,j,s,b,c,U;f(d){for(s=1<<23;s;s/=2,d= d*1LL*d%m)if(s<N)for(p=t;p<t+N;p+=s)for(i=s,c=1;i;i--)b=*p+p[s],p[s]=(m+*p-p[s]) *1LL*c%m,*p++=b%m,c=c*1LL*d%m;for(j=0;i<N-1;){for(s=N/2;!((j^=s)&s);s/=2);if(++i <j)a=t[i],t[i]=t[j],t[j]=a;}}main(){*t=2;U=N=1;while(e/=2){N*=2;U=U*1LL*(m+1)/2% m;f(362);for(p=t;p<t+N;)*p++=*p*1LL**p%m*U%m;f(415027540);for(a=0,p=t;p<t+N;)a+= *p<<(e&1),*p++=a%10,a/=10;}while(!*--p);t[0]--;while(p>=t)printf("%d",*p--);} What's this? (except for a sucky text wrapper .. ) ...An IOCCC entry, I guess... ...And I hate how smiles in code-blocks in quotes get evaluated... Link to comment Share on other sites More sharing options...
Ray Jones Posted May 13, 2005 Share Posted May 13, 2005 ("Disable Smilies in This Post") Err.. Yes. Deobfuscate! ;D Link to comment Share on other sites More sharing options...
DrMcCoy Posted May 13, 2005 Share Posted May 13, 2005 http://www.ioccc.org/2000/bellard.hint ...Now that's neat... Link to comment Share on other sites More sharing options...
RicardoLuigi... Posted May 14, 2005 Author Share Posted May 14, 2005 Yeah, OK, so I didn't get into that strcmp and whatnot, but I have a textbook on it...and anyway, I got the jist of it. I'm not styupid. Link to comment Share on other sites More sharing options...
Skinkie Posted May 14, 2005 Share Posted May 14, 2005 Hey, you mispelled S-T-U-P-I-D (I know it was on purpose, but i did it to make it seem like you really are stupid, see how that works? Maybe I should start coding to make it more clear.....) Link to comment Share on other sites More sharing options...
RicardoLuigi... Posted May 16, 2005 Author Share Posted May 16, 2005 BTW - The finale of Survivor was last night and the SurvivorNanny (a.k.a. Jenn) came in fourth, which was cool b/c I didn't want her to win anyway. Instead, I wanted this girl to win: Ah, Katie. Yes. One of the most hated girls in the game. But sadly, she came in second to the stereotypical high-school jock bully, a 41-year-old firefighter from Brooklyn, NY...Tom Westman. He won nearly every f*cking challenge and was arrogant about it...ugh, I couldn't stand him. He's my least favorite winner ever. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.