Maximum Cyclic Segment Sum by 51b(embed)

char*p,s[400],t[200];main(n){for(;gets(t);printf("%.*s\n",*p++&255,s+128+*p++))p=--n?p:*t%3?"\x96\x09":t[1]%7?"\x8b$$\x81\xe1b\x95\x92\xe4*":"\x93\x02\x8d\x08\x8c\x0f\x94\x02\x9a\x17\x8e\x05\x9a\n\x91\x0c\x8a\x16\x88\r",sprintf(s,"%s %s",t,t);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page