Skip to content

1012 Silly Bakery - ผมลองทำตามโจทย์แล้ว กับไปดูของที่คนได้เต็ม 100 มีเคสที่คิดว่าไม่ตรงโจทย์ครับ #169

Description

@pandaben7890

ตามโจทย์คือจะรวมก้อนไม่ได้ แต่ Solution ที่ได้เต็ม ใช้วิธีคำนวณ Math หมดเลย ซึ่งถ้าเป็นเคสที่

3
0 1 0 0 0
0 1 0 0 0
0 0 1 0 0

ต้องการ 3/4 2 ก้อน กับ 1/2 1 ก้อน
ถ้าใช้ Math มันจะลงตัวได้ cake 2 ก้อน พอดี
แต่ถ้าตามโจทย์ จะต้องใช้ 3 ก้อนหรือเปล่าครับ

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions