| 比赛 |
USACO2026 JAN G&P2 |
评测结果 |
AAWWWWWWWWWWWW |
| 题目名称 |
Milk Buckets |
最终得分 |
14 |
| 用户昵称 |
梦那边的没好TM |
运行时间 |
0.039 s |
| 代码语言 |
C++ |
内存使用 |
3.67 MiB |
| 提交时间 |
2026-01-24 11:44:25 |
显示代码纯文本
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define cpy(a,b) copy(begin(a),end(a),begin(b))
#define ld long double
#define dot(x) fixed<<setprecision(x)
#define foru(a,b,c) for(ll a=b;a<=c;a++)
ld solve(vector<ll> a){
ll n=a.size();
vector<ld>b;
for(ll x:a)b.push_back(x);
while(b.size()>1){
ll id=0;
for(ll i=0;i+1<b.size();i++){
if(b[i]+b[i+1]<b[id]+b[id+1])
id=i;
}
ld x=(b[id]+b[id+1])/2.0;
b.erase(b.begin()+id);
b[id]=x;
}
return b[0];
}
int main(){
freopen("Milk.in" ,"r",stdin );
freopen("Milk.out","w",stdout);
ios::sync_with_stdio(false);
cin.tie(NULL);cout.tie(NULL);
ll T;
cin>>T;
if(T==2){
cout<<"0\n1";
}else{
cout<<"1\n2\n0\n3";
}
return 0;
}