Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Input: Champagne for my real friends
- Output: and real pain for my sham friends!
- Input: Pseudopods for my real friends
- Output: and real pods for my pseudo-friends!
- Input: Petticoats for my real friends
- Output: and real coats for my petty friends.
- Input: Loosestrife for my real friends
- Output: and real strife for my loose friends!
- Input: Ladybugs for my real friends
- Output: and real bugs for my lady friends!
- Input: Single-payer for my real friends
- Output: and RealPlayer for my single friends.
- Input: Tumbleweeds for my real friends
- Output: and real weed for my Tumblr friends!
- Input: Fauxhawks for my real friends
- Output: and real hawks for my faux friends!
- Input: Platonic solids for my real friends
- Output: and real solids for my platonic friends!
- ew
- rw
- eds
- ed
- (w+) ?([^oatr ]w{3}.+)real
- and real $2$1
- C
- S
- gne
- in
- o
- o-
- ti
- ty
- T`TL`Tl
- pw+y.+
- $&.
- s$
- s!
- real -p
- RealPl
- (w+) ?([^oatr ]w{3}.+)real
- and real $2$1
- T`TL`Tl
- pw+y.+
- $&.
- s$
- s!
- _╔x⅜²‘,8WWAa"⅞+1Tλ²⅞ƨ◄…χŗbdŗu8ņ∑Ι⅓I‼hzΔμō┘═q‼xΘ▼²ηpG⅔─┌¡↕+wd÷[≈┐α┌ļ○(‚δΦEΤα{‚φ▒k׀:╚s&⅛↑»‘ |Θwθ1w"ρ└⁸‘S∆∫⁴‘a1>*+oo"¤Ε○Φr‘o2w _@ŗo"æn‘o"χ}49⁶‘aWT
- RealPlayer single_|weed Tumblr_|strife loose_|bugs lady_|pods pseudo-|pain sham_|solids platonic_|coats petty_|hawks faux_
- ..‘,8WWAa"..‘ |Θwθ1w"..‘S∆∫⁴‘a1>*+oo"..‘o2w _@ŗo"..‘o"..‘aWT strings shortened
- ..‘ push "personcake" (the indexing string) ["personcake"]
- 8W get the 8-th char
- , from the input ["personcake", "c"]
- W get its in "personcake" (1-indexed) [7]
- Aa save on variable A [7]
- "..‘ push the long string [7, "RealPlayer...faux_"]
- |Θ split on "|" [7, ["RealPlayer single_", ..., "hawks faux_"]]
- w get the Ath item of the array [["..."], "solids platonic_"]
- θ split on spaces [["..."], ["solids", "platonic_"]]
- 1w get the 1st item [["..."], ["solids", "platonic_"], "solids"]
- "..‘ push "and " [["..."], ["solids", "platonic_"], "solids", "and "]
- S∆∫⁴‘ push "real " [["..."], ["solids", "platonic_"], "solids", "and ", "real "]
- a1>* multiply by A(index) > 1 [["..."], ["solids", "platonic_"], "solids", "and ", "real "]
- + join together [["..."], ["solids", "platonic_"], "solids", "and real "]
- o output [["..."], ["solids", "platonic_"], "solids"]
- o output (the 1st item of the array) [["..."], ["solids", "platonic_"]]
- "..‘o output " for my " [["..."], ["solids", "platonic_"]]
- 2w get the 2nd item of the array [["..."], ["solids", "platonic_"], "platonic_"]
- _@ŗ replace "_" with " " [["..."], ["solids", "platonic_"], "platonic "]
- o output that [["..."], ["solids", "platonic_"]]
- "..‘o output "friends" [["..."], ["solids", "platonic_"]]
- "..‘ push ".!!!!!!.!" [["..."], ["solids", "platonic_"], ".!!!!!!.!"]
- aW get the Ath item [["..."], ["solids", "platonic_"], "!"]
- T output, disabling implicit output [["..."], ["solids", "platonic_"]]
- h a{r=indexOf(a[7:8],"noarspekc")A="pain>pods>coats>strife>Player>bugs>weed>hawks>solids>sham >pseudo->petty >loose >lady >single >Tumblr >faux >platonic >!>!>.>!>!>.>!>!>!"/">";["and "];["Real"]if[r=4]else["real "];[A[r]," for my ",A[r+9],"friends",A[r+18]]}
- h a{
- r=indexOf(a[7:8],"noarspekc") /*Gets the index of the character in this string*/
- /*Variable A contains all the unique words for each test case*/
- A="pain>pods>coats>strife>Player>bugs>weed>hawks>solids>sham >pseudo->petty >loose >lady >single >Tumblr >faux >platonic >!>!>.>!>!>.>!>!>!"/">"
- ["and "]
- ["Real"]if[r=4]else["real "] /*RealPlayer*/
- [A[r]," for my ",A[r+9],"friends",A[r+18]] /*Print everything using var A*/
- }
- and real <?=[pods,solids,hawks,strife,RealPlayer,pain,bugs,weed,coats][$q=md5($argv[1].LnI)%9].' for my '.[pseudo,platonic,faux,loose,single,sham,lady,Tumblr,petty][$q].' -'[!$q].friends.'.!'[!$q||$q&3];
- sub f{
- my($_)=@_;
- s,(S+[oieyxm ])(S{4}.+)real,and real $2l$1,;
- s,gne,in,;
- s,ch,sh,;
- s,ti,ty,;
- s,eds,ed,;
- s,tumble,Tumblr,;
- s,real -p,RealPl,;
- s,o ,o-,;
- s,c ,c,;
- /ng|tt/?"$_.":"$_!"
- }
- i,j,c;f(char*s){c=s[7]-97;char t[9],u[200];char*r=s;s+=j=c&&c-17?c-10&&c-18?c-2?5:8:3:4;for(i=0;*++s-32;t[i++]=*s);t[c-4?i:i-1]=0;for(i=0;*r++-t[0];)u[i++]=*(r-1);u[i]=32;u[i+1]=0;u[0]+=32;u[c?i:i-1]=c?c-2?c-14?32:45:0:121;printf("and %s%s for my %sfriends%c",c-15?"real ":"RealPlayer",c-15?c-13?t:"pain":"",c-13?c-4?c-17?u:"loose ":"Tumblr ":"sham ",c&&c-15?33:46);}
Add Comment
Please, Sign In to add comment