Skip to content
Snippets Groups Projects
Commit 525d6469 authored by Jan Matoušek's avatar Jan Matoušek
Browse files

Prevent easy solution via calculating sum in int.

parent 8d46b681
Branches solution-lab01
No related tags found
No related merge requests found
......@@ -66,4 +66,5 @@ int main() {
assert(testAddition({8,7},{4,5},{1,3,2})); // 87 + 45 = 132
assert(testAddition({9,9,9,9},{1},{1,0,0,0,0})); // 9999 + 1 = 10000
assert(testAddition({1},{9,9,9,9},{1,0,0,0,0})); // 1 + 9999 = 10000
assert(testAddition({1},{9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9},{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment