Beginner Free Contest 53 - NUMRECT

View as PDF

Submit solution

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

Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch

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

Lưu ý: các bạn không nhập, xuất dữ liệu bằng file kể cả khi đề bài có yêu cầu. Đọc, ghi dữ liệu được thực hiện ở stdin và stdout.


Comments

Please read the guidelines before commenting.



  • -3
    k30hongvuong  commented on Dec. 9, 2025, 2:05 a.m.

    thu dam tinh than

    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int t; cin >> t ;
    while(t--){
        int n , m ;
        cin >> n >> m ;
        int sum = (n * (n+1))/2;
        int sum2 = (m * (m+1))/2;
        cout << sum * sum2 << '\n';
    }
    return 0;
    

  • -3
    tranhoang1111  commented on Feb. 17, 2025, 2:41 a.m. edited

    Hi!


  • 15
    nhuttruong2k9  commented on Jan. 13, 2024, 3:22 p.m.

    https://www.youtube.com/watch?v=iJzSOqN4KC4&t=53s công thức cho ai cần


  • -5
    K30Minh  commented on Nov. 20, 2023, 1:12 p.m.

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


  • -8
    vendettas  commented on Sept. 15, 2023, 11:49 a.m.

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