Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct BigInt{
- vector<unsigned char> d;
- inline const unsigned char D(int ind){
- return ind>=d.size()?0:d[ind];
- }
- const BigInt operator+ (const BigInt &other){
- BigInt ans;
- int stop=max(other.d.size(), d.size())+1;
- unsigned char carry=0;
- for(int i=0; i < stop; ++i){
- if(D(i) > 255-carry || 255-carry-D(i) < other.D(i))
- }
- }
- }
Add Comment
Please, Sign In to add comment