fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a,b;
  6. int i;
  7. int answer=0;
  8. cin>>a;
  9. cin>>b;
  10. for(i=1;i<=a;++i)
  11. answer=answer+1;
  12. for(i=1;i<=b;++i)
  13. answer=answer+1;
  14. cout<<answer<<endl;
  15. return 0;
  16. }
Success #stdin #stdout 0s 4316KB
stdin
1000000000
1000000000
stdout
2000000000