logo
Thailand Competitive Programming Wiki
Max Median
Initializing search
    thai-cp/thai-cp.github.io
    • Home
    • Road Map
    • ทั่วไป
    • การเขียนโปรแกรมเบื้องต้น
    • โครงสร้างข้อมูลและอัลกอริทึมพื้นฐาน
    • โจทย์
    thai-cp/thai-cp.github.io
    • Home
      • พื้นฐาน (Basic)
      • อะไรคือ Competitive Programming?
      • สอวน. คอมพิวเตอร์
      • แหล่งเรียนรู้
      • บทนำ
      • วิธีการรันโปรแกรม
        • Hello, World!
        • ตัวแปร ชนิดข้อมูล และตัวดำเนินการ
        • การส่งออกและนำเข้าข้อมูล
        • คำสั่ง if - else
        • คำสั่งวนซ้ำ (Loop)
        • ตัวแปรชุด และสายอักขระ
        • ฟังก์ชัน
        • ตัวแปรโครงสร้าง (Struct)
        • ตัวชี้ (Pointer)
        • Hello, World!
        • ตัวแปร ชนิดข้อมูล และตัวดำเนินการ
        • การส่งออกและนำเข้าข้อมูล
        • คำสั่ง if - else
        • คำสั่งวนซ้ำ (Loop)
        • ตัวแปรชุด และสายอักขระ
        • ฟังก์ชัน
        • ตัวแปรโครงสร้าง (Struct)
        • ตัวชี้ (Pointer)
      • Complexity Analysis
      • Intro to Data Structures
      • Binary Search
      • Sorting Algorithms
      • Prefix Sum
      • Linked List
      • Stack
      • Queue
    • โจทย์

    Max Median


    View Problem Statement

    Source: Codeforces

    Difficulty: Hard

    Tags: Binary search

    Prerequisites:

    • Binary search

    View External Solution

    © 2025 Thailand Competitive Programming — Licensed under CC BY-NC-SA 4.0
    Made with Material for MkDocs