Skip to main content
deleted 31 characters in body
Source Link

C#, 398 390 385 396396 389 bytes

class P{static void Main(string[] a){string s=""s="2"+System.Convert.ToString(int.Parse(a[0]),2),e="CIA: ",r="BANE: ",o="";int n=int.Parse(a[0]),k=0,l=0,i=1;for(;n>0;n/=2)s=""+n%2+s;s="2"+s;string[]i=1;string[] c="If I pull that off will you die? You're a big guy.".Split(' '),b="It would be extremely painful... for you!".Split(' ');for(;i<s.Length;i++)o+=(s[i-1]==s[i]?" ":(i<2?"":"\n")+(s[i]>'0'?e:r))+(s[i]>'0'?c[k++]:b[l++]);System.Console.Write(o);}}

Launch with input number as parameter.

Ungolfed:

class P
{
    static void Main(string[] a)
    {
        string s = """2" + System.Convert.ToString(int.Parse(a[0]), 2), e = "CIA: ", r = "BANE: ", o = "";
        int n = int.Parse(a[0]), k = 0, l = 0, i = 1;
        for (; n > 0; n /= 2) s = "" + n % 2 + s;
        s = "2" + s;
        string[] c = "If I pull that off will you die? You're a big guy.".Split(' '), b = "It would be extremely painful... for you!".Split(' ');
        for (; i < s.Length; i++)
            o += (s[i - 1] == s[i] ? " " : (i<2?"":"\n") + (s[i] > '0' ? e : r))
                + (s[i] > '0' ? c[k++] : b[l++]);
        System.Console.Write(o); 
    }
}

Back to 396 bytes because I didn't notice "no newline at the begining rule"begining" rule.

C#, 398 390 385 396 bytes

class P{static void Main(string[] a){string s="",e="CIA: ",r="BANE: ",o="";int n=int.Parse(a[0]),k=0,l=0,i=1;for(;n>0;n/=2)s=""+n%2+s;s="2"+s;string[] c="If I pull that off will you die? You're a big guy.".Split(' '),b="It would be extremely painful... for you!".Split(' ');for(;i<s.Length;i++)o+=(s[i-1]==s[i]?" ":(i<2?"":"\n")+(s[i]>'0'?e:r))+(s[i]>'0'?c[k++]:b[l++]);System.Console.Write(o);}}

Launch with input number as parameter.

Ungolfed:

class P
{
    static void Main(string[] a)
    {
        string s = "", e = "CIA: ", r = "BANE: ", o = "";
        int n = int.Parse(a[0]), k = 0, l = 0, i = 1;
        for (; n > 0; n /= 2) s = "" + n % 2 + s;
        s = "2" + s;
        string[] c = "If I pull that off will you die? You're a big guy.".Split(' '), b = "It would be extremely painful... for you!".Split(' ');
        for (; i < s.Length; i++)
            o += (s[i - 1] == s[i] ? " " : (i<2?"":"\n") + (s[i] > '0' ? e : r))
                + (s[i] > '0' ? c[k++] : b[l++]);
        System.Console.Write(o); 
    }
}

Back to 396 bytes because I didn't notice "no newline at the begining rule".

C#, 398 390 385 396 389 bytes

class P{static void Main(string[] a){string s="2"+System.Convert.ToString(int.Parse(a[0]),2),e="CIA: ",r="BANE: ",o="";int k=0,l=0,i=1;string[] c="If I pull that off will you die? You're a big guy.".Split(' '),b="It would be extremely painful... for you!".Split(' ');for(;i<s.Length;i++)o+=(s[i-1]==s[i]?" ":(i<2?"":"\n")+(s[i]>'0'?e:r))+(s[i]>'0'?c[k++]:b[l++]);System.Console.Write(o);}}

Launch with input number as parameter.

Ungolfed:

class P
{
    static void Main(string[] a)
    {
        string s = "2" + System.Convert.ToString(int.Parse(a[0]), 2), e = "CIA: ", r = "BANE: ", o = "";
        int k = 0, l = 0, i = 1;
        
        string[] c = "If I pull that off will you die? You're a big guy.".Split(' '), b = "It would be extremely painful... for you!".Split(' ');
        for (; i < s.Length; i++)
            o += (s[i - 1] == s[i] ? " " : (i<2?"":"\n") + (s[i] > '0' ? e : r))
                + (s[i] > '0' ? c[k++] : b[l++]);
        System.Console.Write(o); 
    }
}

Back to 396 bytes because I didn't notice "no newline at the begining" rule.

added 83 characters in body
Source Link

C#, 398 390 385385 396 bytes

class P{static void Main(string[] a){string s="",e="\nCIAe="CIA: ",r="\nBANEr="BANE: ",o="";int n=int.Parse(a[0]),k=0,l=0,i=1;for(;n>0;n/=2)s=o+n%2+s;s="2"+s;string[]s=""+n%2+s;s="2"+s;string[] c="If I pull that off will you die? You're a big guy.".Split(' '),b="It would be extremely painful... for you!".Split(' ');for(;i<s.Length;i++)o+=(s[i-1]==s[i]?" ":(i<2?"":"\n")+(s[i]>'0'?e:r))+(s[i]>'0'?c[k++]:b[l++]);System.Console.Write(o);}}

Launch with input number as parameter.

Ungolfed:

class P
{
    static void Main(string[] a)
    {
        string s = "", e = "\nCIA"CIA: ", r = "\nBANE"BANE: ", o = "";
        int n = int.Parse(a[0]), k = 0, l = 0, i = 1;
        for (; n > 0; n /= 2) s = o"" + n % 2 + s;
        s = "2" + s;
        string[] c = "If I pull that off will you die? You're a big guy.".Split(' '), b = "It would be extremely painful... for you!".Split(' ');
        for (; i < s.Length; i++)
            o += (s[i - 1] == s[i] ? " " : (i<2?"":"\n") + (s[i] > '0' ? e : r))
                + (s[i] > '0' ? c[k++] : b[l++]);
        System.Console.Write(o); 
    }
}

Will golf it a little laterBack to 396 bytes because I didn't notice "no newline at the begining rule".

C#, 398 390 385 bytes

class P{static void Main(string[] a){string s="",e="\nCIA: ",r="\nBANE: ",o="";int n=int.Parse(a[0]),k=0,l=0,i=1;for(;n>0;n/=2)s=o+n%2+s;s="2"+s;string[] c="If I pull that off will you die? You're a big guy.".Split(' '),b="It would be extremely painful... for you!".Split(' ');for(;i<s.Length;i++)o+=(s[i-1]==s[i]?" ":(s[i]>'0'?e:r))+(s[i]>'0'?c[k++]:b[l++]);System.Console.Write(o);}}

Launch with input number as parameter.

Ungolfed:

class P
{
    static void Main(string[] a)
    {
        string s = "", e = "\nCIA: ", r = "\nBANE: ", o = "";
        int n = int.Parse(a[0]), k = 0, l = 0, i = 1;
        for (; n > 0; n /= 2) s = o + n % 2 + s;
        s = "2" + s;
        string[] c = "If I pull that off will you die? You're a big guy.".Split(' '), b = "It would be extremely painful... for you!".Split(' ');
        for (; i < s.Length; i++)
            o += (s[i - 1] == s[i] ? " " : (s[i] > '0' ? e : r))
                + (s[i] > '0' ? c[k++] : b[l++]);
        System.Console.Write(o); 
    }
}

Will golf it a little later.

C#, 398 390 385 396 bytes

class P{static void Main(string[] a){string s="",e="CIA: ",r="BANE: ",o="";int n=int.Parse(a[0]),k=0,l=0,i=1;for(;n>0;n/=2)s=""+n%2+s;s="2"+s;string[] c="If I pull that off will you die? You're a big guy.".Split(' '),b="It would be extremely painful... for you!".Split(' ');for(;i<s.Length;i++)o+=(s[i-1]==s[i]?" ":(i<2?"":"\n")+(s[i]>'0'?e:r))+(s[i]>'0'?c[k++]:b[l++]);System.Console.Write(o);}}

Launch with input number as parameter.

Ungolfed:

class P
{
    static void Main(string[] a)
    {
        string s = "", e = "CIA: ", r = "BANE: ", o = "";
        int n = int.Parse(a[0]), k = 0, l = 0, i = 1;
        for (; n > 0; n /= 2) s = "" + n % 2 + s;
        s = "2" + s;
        string[] c = "If I pull that off will you die? You're a big guy.".Split(' '), b = "It would be extremely painful... for you!".Split(' ');
        for (; i < s.Length; i++)
            o += (s[i - 1] == s[i] ? " " : (i<2?"":"\n") + (s[i] > '0' ? e : r))
                + (s[i] > '0' ? c[k++] : b[l++]);
        System.Console.Write(o); 
    }
}

Back to 396 bytes because I didn't notice "no newline at the begining rule".

deleted 10 characters in body
Source Link

C#, 398 390390 385 bytes

class P{static void Main(string[] a){varstring s="";ints="",e="\nCIA: ",r="\nBANE: ",o="";int n=int.Parse(a[0]),k=0,l=0,i=1;for(;n>0;n/=2)s=""+n%2+s;s="2"+s;string[]s=o+n%2+s;s="2"+s;string[] c="If I pull that off will you die? You're a big guy.".Split(' '),b="It would be extremely painful... for you!".Split(' ');string e="\nCIA: ",r="\nBANE: ",o="";for;for(;i<s.Length;i++)o+=(s[i-1]==s[i]?" ":(s[i]>'0'?e:r))+(s[i]>'0'?c[k++]:b[l++]);System.Console.Write(o);}}

Launch with input number as parameter.

Ungolfed:

class P
{
    static void Main(string[] a)
    {
        varstring s = "", e = "\nCIA: ", r = "\nBANE: ", o = "";
        int n = int.Parse(a[0]), k = 0, l = 0, i = 1;
        for (; n > 0; n /= 2) s = ""o + n % 2 + s;
        s = "2" + s;
        string[] c = "If I pull that off will you die? You're a big guy.".Split(' '), b = "It would be extremely painful... for you!".Split(' ');
        string e = "\nCIA: ", r = "\nBANE: ", o = "";
        for (; i < s.Length; i++)
            o += (s[i - 1] == s[i] ? " " : (s[i] > '0' ? e : r))
                + (s[i] > '0' ? c[k++] : b[l++]);
        System.Console.Write(o); 
    }
}

Will golf it a little later.

C#, 398 390 bytes

class P{static void Main(string[] a){var s="";int n=int.Parse(a[0]),k=0,l=0,i=1;for(;n>0;n/=2)s=""+n%2+s;s="2"+s;string[] c="If I pull that off will you die? You're a big guy.".Split(' '),b="It would be extremely painful... for you!".Split(' ');string e="\nCIA: ",r="\nBANE: ",o="";for(;i<s.Length;i++)o+=(s[i-1]==s[i]?" ":(s[i]>'0'?e:r))+(s[i]>'0'?c[k++]:b[l++]);System.Console.Write(o);}}

Launch with input number as parameter.

Ungolfed:

class P
{
    static void Main(string[] a)
    {
        var s = "";
        int n = int.Parse(a[0]), k = 0, l = 0, i = 1;
        for (; n > 0; n /= 2) s = "" + n % 2 + s;
        s = "2" + s;
        string[] c = "If I pull that off will you die? You're a big guy.".Split(' '), b = "It would be extremely painful... for you!".Split(' ');
        string e = "\nCIA: ", r = "\nBANE: ", o = "";
        for (; i < s.Length; i++)
            o += (s[i - 1] == s[i] ? " " : (s[i] > '0' ? e : r))
                + (s[i] > '0' ? c[k++] : b[l++]);
        System.Console.Write(o); 
    }
}

Will golf it a little later.

C#, 398 390 385 bytes

class P{static void Main(string[] a){string s="",e="\nCIA: ",r="\nBANE: ",o="";int n=int.Parse(a[0]),k=0,l=0,i=1;for(;n>0;n/=2)s=o+n%2+s;s="2"+s;string[] c="If I pull that off will you die? You're a big guy.".Split(' '),b="It would be extremely painful... for you!".Split(' ');for(;i<s.Length;i++)o+=(s[i-1]==s[i]?" ":(s[i]>'0'?e:r))+(s[i]>'0'?c[k++]:b[l++]);System.Console.Write(o);}}

Launch with input number as parameter.

Ungolfed:

class P
{
    static void Main(string[] a)
    {
        string s = "", e = "\nCIA: ", r = "\nBANE: ", o = "";
        int n = int.Parse(a[0]), k = 0, l = 0, i = 1;
        for (; n > 0; n /= 2) s = o + n % 2 + s;
        s = "2" + s;
        string[] c = "If I pull that off will you die? You're a big guy.".Split(' '), b = "It would be extremely painful... for you!".Split(' ');
        for (; i < s.Length; i++)
            o += (s[i - 1] == s[i] ? " " : (s[i] > '0' ? e : r))
                + (s[i] > '0' ? c[k++] : b[l++]);
        System.Console.Write(o); 
    }
}

Will golf it a little later.

deleted 3 characters in body
Source Link
Loading
added 58 characters in body
Source Link
Loading
deleted 8 characters in body
Source Link
Loading
deleted 4 characters in body
Source Link
Loading
Source Link
Loading