fork(1) download
  1. import std.format;
  2. import std.stdio;
  3.  
  4. void main ()
  5. {
  6. string s;
  7. int v = 0;
  8. while (true)
  9. {
  10. string t = format ("%b", v + 1);
  11. if (s.length + t.length > 75)
  12. {
  13. break;
  14. }
  15. v += 1;
  16. s ~= t;
  17. }
  18. writeln (s, " ", v);
  19. }
  20.  
Success #stdin #stdout 0s 2688KB
stdin
Standard input is empty
stdout
11011100101110111100010011010101111001101111011111000010001100101001110100 20