TÍNH TỔNG DÃY SỐ

View as PDF

Submit solution

Points: 100.00 (partial)
Time limit: 1.0s
Memory limit: 512M
Input: stdin
Output: stdout

Problem type
Allowed languages
Python, Scratch

In case the statement didn't load correctly, you can download the statement here: Statement


Comments

Please read the guidelines before commenting.



  • 0
    No_name_01   commented on July 30, 2022, 3:55 p.m.
    • Code python

    • n = int(input())

    • m = int(input())
    • ans = m // 2 * (n + 1)
    • if m % 2: ans += m // 2 + 1
    • print(ans)

  • -1
    tan2307   commented on July 22, 2022, 4:42 p.m.

    ???


  • -5
    nguyenloc2204   commented on June 27, 2022, 8:15 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.