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
    tanvu5blh   commented on May 25, 2023, 9:48 a.m.

    hi


  • 1
    doandulamtin   commented on April 28, 2023, 8:07 p.m. edit 5

    n,m,ans = int(input()),int(input()),0;print(int((n+1) * (m//2)+m//2+1)) if m%2 else print(int((n+1) * (m//2)))


  • 0
    ducminh134   commented on April 9, 2023, 9:45 a.m.

    ??????????????????????????????????????????????


  • -1
    ducminh134   commented on April 9, 2023, 9:11 a.m.

    ?


  • 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)

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

    ???


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

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