#include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
int main()
{
int n,m,k,a1,a2,a3,p,q,a,i;
cin>>n>>m>>k>>a1>>a2>>a3>>p>>q>>a;
for(i=1;i<=a;i++)
{
n=n+m-k+a1+a2+a3;
if(n>=p||n<=q)
{
cout<<"YSM, WYX and WXJ, you die!";
return 0;
}
}
cout<<n;
}
时间: 2024-12-12 04:24:43