We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
simple c++ code with data storing in as big datatype as long long int.
#include<bits/stdc++.h>usingnamespacestd;unsignedlonglongintsolve(unsignedlonglongintn,unsignedlonglongintm){// Complete this functionunsignedlonglongintrow=n;unsignedlonglongintcolumn=m;unsignedlonglongintcount=(((row-1)*column)+(column-1));returncount;}intmain(){unsignedlonglongintn;unsignedlonglongintm;cin>>n>>m;unsignedlonglongintresult=solve(n,m);cout<<result<<endl;return0;}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Cutting Paper Squares
You are viewing a single comment's thread. Return to all comments →
simple c++ code with data storing in as big datatype as long long int.