Hofstadter Figure-Figure sequences: Difference between revisions

output optimization (C++)
(use of arguments (C++))
(output optimization (C++))
Line 335:
}
 
ostream& operator<<(ostream& os, const set<unsigned>& s)
{
cout << '(' << s.size() << "):";
Line 365:
if (r.count(n) == s.count(n))
clog << "integer " << n << " either in both or neither set" << endl;
cout << "done" << endl;
 
return 0;
Line 380 ⟶ 379:
49 50 51 52 53 54 55 57 58 59 60 61 62 63 64 65 66 67 68 70
71 72 73 74 75 76 77 78 79 80 81 82 84 85 86 87 88 89 90 91
92 93 94 95 96 97 99 100 101 102 103 104 105 106 107 108 109 110 111 112</lang>
done</lang>
 
=={{header|C sharp|C#}}==
Anonymous user