aboutsummaryrefslogtreecommitdiff
path: root/boca-1.5.2/doc/tests/fontes/bits-incorrect.cpp
diff options
context:
space:
mode:
authorcassio <cassiopc@gmail.com>2013-07-02 05:44:46 +0000
committercassio <cassiopc@gmail.com>2013-07-02 05:44:46 +0000
commita9aa438ea0558eb0044cf1e54a9190ddb41b65e5 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /boca-1.5.2/doc/tests/fontes/bits-incorrect.cpp
parent94caebadeb66ad7b453d4258a796979cafb758b0 (diff)
downloadboca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.tar.gz
boca-a9aa438ea0558eb0044cf1e54a9190ddb41b65e5.zip
restructuring of boca's git
Diffstat (limited to 'boca-1.5.2/doc/tests/fontes/bits-incorrect.cpp')
-rw-r--r--boca-1.5.2/doc/tests/fontes/bits-incorrect.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/boca-1.5.2/doc/tests/fontes/bits-incorrect.cpp b/boca-1.5.2/doc/tests/fontes/bits-incorrect.cpp
deleted file mode 100644
index 3b38845..0000000
--- a/boca-1.5.2/doc/tests/fontes/bits-incorrect.cpp
+++ /dev/null
@@ -1,18 +0,0 @@
-#include <iostream>
-using namespace std;
-int main(void) {
- int i, j, n, max, inst=0;
- while(42) {
- cin >> n;
- if(!n) break;
- max=0;
- for(i=0; i<n; i++) {
- cin >> j;
- if(j>max) max=j;
- }
- for(i=0; max>0; i++)
- max >>= 1;
- cout << "Instancia " << ++inst << endl << (i*n) << endl << endl;
- }
- return 0;
-}