Loading...
Submission
Id When Author Problem Language CPU Memory Verdict
218 2021-06-30 05:31:58 AmirHamza A Plus B C++ 11 5 ms 3520 kb Accepted
Test Cases
CPU Memory Verdict
1 4 ms 3412 kb Accepted
2 4 ms 3520 kb Accepted
3 4 ms 3440 kb Accepted
4 4 ms 3264 kb Accepted
5 4 ms 3488 kb Accepted
6 5 ms 3436 kb Accepted
Source Code
program.cpp
Download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. typedef long long ll;
  4.  
  5.  
  6. ll brouteForces(ll n,ll a,ll b,ll c)
  7. {
  8. if(n<=1)return c;
  9. return a+b+brouteForces(n-1,a,b,c);
  10. }
  11.  
  12. ll optimize(ll n,ll a,ll b,ll c)
  13. {
  14. ll ans=((n-1)*a)+((n-1)*b)+c;
  15. return ans;
  16. }
  17.  
  18. void solve(ll t)
  19. {
  20. ll n,a,b,ans;
  21. cin >> a >> b;
  22. ans = a + b;
  23. cout << ans << "\n";
  24.  
  25. }
  26.  
  27. int main()
  28. {
  29. //freopen("input.txt","r",stdin);
  30. //freopen("output.txt","w",stdout);
  31.  
  32. ll t,i;
  33. ll a,b;
  34. cin >> a >> b;
  35. cout << (a+b) << "\n";
  36.  
  37. return 0;
  38. }
  39.