CẶP SỐ CHẴN

View as PDF

Submit solution

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

Problem type
Allowed languages
C++, Pascal, Python, Scratch


Comments

Please read the guidelines before commenting.



  • 2
    tranha2102   commented on July 14, 2023, 1:40 p.m.

    mình chưa học công thức này ạ


  • 0
    tranha2102   commented on July 13, 2023, 2:45 p.m.

    bài này giải bằng pascal thế nào ạ


    • 0
      KhiemNguyen   commented on July 13, 2023, 7:00 p.m.

      //Sử dụng công thức:
      if odd(N) then writeln((N+1)((N-3)div 2+1)div 2+(N div 2)(N div 2+1)div 2) else writeln(N((N-2)div 2+1)div 2+(N div 2)(N div 2+1)div 2);


      • 0
        tranha2102   commented on July 14, 2023, 1:41 p.m.

        mình chưa học công thức này ạ