duplicates by fuzzylojik

using C=System.Console;class M{static void Main(){char a='@',c=' ';foreach(var d in C.ReadLine().ToString()+'\n'){if(c!=d&&d!=a){C.Write(d);if(c==a)C.Write(d);}c=d;}Main();}}

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

download

return to the top page