Replies: 1 comment
-
k <= 1e9 n <= 20; expo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
มีตารางขนาด i * j เป็น grid
เด็กผู้ชายต้องการไปจากตำแหน่ง (1,1) ไปยัง (i,j) โดยที่ทำการเลือกม้าในการเดินทาง
โดยม้า n ตัว แต่ะละตัวมีค่าใช้จ่าย k และสามารถเดินทางได้ (x,y) ช่อง
จงหาว่าค่าใช้จ่ายน้อยที่สุดที่ทำให้เด็กผู้ชายไปถึงจุดหมายเป็นเท่าไหร่ (เดินทางเกินได้)
Sol : 2d knapsack
Beta Was this translation helpful? Give feedback.
All reactions