提交时间:2022-05-07 14:00:40

运行 ID: 49419

//function #include<bits/stdc++.h> using namespace std; int main() { int k1,k2,n,k; cin>>n>>k>>k1>>k2; if(k==0) cout<<0<<endl; else if(k1==0&&k2==k1) cout<<k<<endl; return 0; }