#include <iostream>;
using namespace std;
int main ()
{
int k=1, s=1;
while (s<=100) {
k++;
s = s*2+k;
}
cout << k;
return 0;
}
Результат:
6
256 (10) = 100 (16)
400 (10) = 190 (16)
1234 (10) = 4D2 (16)
2012 (10) = 7DC (16)
Program rrr;
var a,s:longint;
begin
read(a);
s:=455545656566556;
if (a mod 4)=0 then s:=a div 2
else s:=a;
write(s);
end.