From 866658cded5b92ddb2681dead1ebaf111d712fcc Mon Sep 17 00:00:00 2001 From: cassiopc Date: Mon, 6 Aug 2012 11:09:10 +0200 Subject: init --- boca-1.5.0/doc/tests/fontes/bits-outputformat.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 boca-1.5.0/doc/tests/fontes/bits-outputformat.cpp (limited to 'boca-1.5.0/doc/tests/fontes/bits-outputformat.cpp') diff --git a/boca-1.5.0/doc/tests/fontes/bits-outputformat.cpp b/boca-1.5.0/doc/tests/fontes/bits-outputformat.cpp new file mode 100644 index 0000000..62d11f5 --- /dev/null +++ b/boca-1.5.0/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