# zj c875 裝置藝術 ```cpp= #include <bits/stdc++.h> using namespace std; int main(){ int a, b, c; cin>>a>>b>>c; int lim = c/b; int h[a]; priority_queue< pair<int, int> > cans; // {height, place} for(int i=0; i<a; i++){ int can; cin>>can; h[i] = can; cans.push( {-can, i} ); // input negative height so the shorter ones will be favored } sort(cans.begin(), cans.end()); for(int i=0; i<a; i++){ } } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up