fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string s = Console.ReadLine();
  8. long k = Int64.Parse(s);
  9. string str = Convert.ToBase64String(BitConverter.GetBytes(k));
  10. Console.WriteLine(str);
  11. long x = BitConverter.ToInt64(Convert.FromBase64String(str), 0);
  12. Console.WriteLine("{0} {1} {2}", k, x, x==k);
  13. }
  14. }
Success #stdin #stdout 0.02s 26380KB
stdin
Standard input is empty
stdout
AAAAAAAAAAA=
0 0 True