Jump to content

Home

The Attack of the Nannies!


RicardoLuigi...

Who's better?  

6 members have voted

  1. 1. Who's better?

    • Supernanny
      2
    • Nanny 911
      0
    • DJG
      4


Recommended Posts

Originally posted by Das Mole

Heh, I like that if(!strcmp...)... in your sig MickeyKoi :p

 

..."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

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

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

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:

 

426fba0640a9d807.jpg

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...