A cộng B

View as PDF

Submit solution


Points: 0.01 (partial)
Time limit: 1.0s
Memory limit: 512M

Problem source:
Just to test
Problem type
Allowed languages
C, C++, Java, Pascal, Python, Scratch, TEXT

Cho ~2~ số nguyên ~A~ và ~B~. Hãy tính ~A + B~.

Input

Gồm ~1~ dòng chứa ~2~ số nguyên ~A~ và ~B~ ~(1 \le A, B \le 1000)~, cách bởi ~1~ dấu cách.

Output

Ghi ra tổng ~A + B~.

Sample Input

3 4

Sample Output

7

Note

Gợi ý: Sử dụng toán tử "+".


Comments

Please read the guidelines before commenting.



  • 10
    Trần Quang Lộc  commented on 8, Sep, 2021, 16:35

    thinkingcat

    • 2
      jalsol  commented on 9, Sep, 2021, 16:33


    • -6
      Võ Hoàng Anh  commented on 8, Sep, 2021, 16:37

      This comment is hidden due to too much negative feedback. Click here to view it.


  • -16
    Võ Hoàng Anh  commented on 8, Sep, 2021, 16:29

    This comment is hidden due to too much negative feedback. Click here to view it.


    • 0
      someone  commented on 9, Sep, 2021, 20:43

      chịu thật nếu idea như này cho mình xin code với


    • 7
      pichu  commented on 8, Sep, 2021, 16:36

      uoc j


      • -7
        Võ Hoàng Anh  commented on 8, Sep, 2021, 16:37

        This comment is hidden due to too much negative feedback. Click here to view it.


  • 11
    caubecanlao  commented on 5, Aug, 2021, 10:19

    công thức quy hoạch động khá đơn giản

    include <bits/stdc++.h>

    using namespace std; const int N = 1e3 + 1e2; int dp[N][N]; int main() { cin.tie(0)->syncwithstdio(0); dp[1][0] = 1; dp[0][1] = 1; for (int i = 1; i <= 1000; i++) { for (int j = 1; j <= 1000; j++) { dp[i][j] = max({dp[i - 1][j] - (-1), dp[i][j - 1] - (-1), dp[i - 1][j - 1] - (-2)}); } } int a, b; cin >> a >> b; cout << max(dp[a][b], dp[b][a]); return 0; }


    • -5
      nguyenvana123  commented on 5, Aug, 2021, 10:21

      This comment is hidden due to too much negative feedback. Click here to view it.