From 3a5f406ff59a05c0eddda191127d58b39cb8049b Mon Sep 17 00:00:00 2001 From: cassiopc Date: Wed, 24 Oct 2012 09:56:07 +0200 Subject: open dir for 1.5.2. I still must split devel and master in different branches to properly use git... --- boca-1.5.2/doc/tests/fontes/bits-outputformat.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 boca-1.5.2/doc/tests/fontes/bits-outputformat.cpp (limited to 'boca-1.5.2/doc/tests/fontes/bits-outputformat.cpp') diff --git a/boca-1.5.2/doc/tests/fontes/bits-outputformat.cpp b/boca-1.5.2/doc/tests/fontes/bits-outputformat.cpp new file mode 100644 index 0000000..62d11f5 --- /dev/null +++ b/boca-1.5.2/doc/tests/fontes/bits-outputformat.cpp @@ -0,0 +1,17 @@ +#include +int main(void) { + int i, j, n, max, inst=0; + while(42) { + scanf("%d", &n); + if(!n) break; + max=1; + for(i=0; imax) max=j; + } + for(i=0; max>0; i++) + max >>= 1; + printf("INStanCIA %d\n%d\n\n", ++inst, i*n); + } + return 0; +} -- cgit v1.2.3