唉,不说了,真坑!!
code
#include <set>
#include <map>
#include <ctime>
#include <queue>
#include <cmath>
#include <stack>
#include <limits>
#include <vector>
#include <bitset>
#include <string>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <string.h>
#include <iostream>
#include <algorithm>
#define Si set<int>
#define LL long long
#define pb push_back
#define PS printf(" ")
#define Vi vector<int>
#define LN printf("\n")
#define lson l,m,rt << 1
#define rson m+1,r,rt<<1|1
#define SD(a) scanf("%d",&a)
#define PD(a) printf("%d\n",a)
#define SET(a,b) memset(a,b,sizeof(a))
#define FF(i,a) for(int i(0);i<(a);i++)
#define FD(i,a) for(int i(a);i>=(1);i--)
#define FOR(i,a,b) for(int i(a);i<=(b);i++)
#define FOD(i,a,b) for(int i(a);i>=(b);i--)
#define readf freopen("input.txt","r",stdin)
#define writef freopen("output.txt","w",stdout)
const int maxn = 1006;
const int INF = ~0U>>1;
const int dx[]={0,1,0,-1};
const int dy[]={1,0,-1,0};
const double pi = acos(-1.0);
using namespace std;
int main()
{
double s,d;
while(~scanf("%lf%lf",&s,&d))
{
bool flag=false;
int surplus=0;
if(s>=4*d){
puts("Deficit");continue;
}
else if((s>=1.5*d)&&(s<4*d)){
surplus=3*s-9*d;
if(surplus<0){
puts("Deficit");continue;
}
}
else if((s>=2/3*d)&&(s<1.5*d)) {
surplus=6*(s-d);
if(surplus<0){
puts("Deficit");continue;
}
}
else if((s>=0.25*d)&&(s<2/3*d)){
surplus=8*s-4*d;
if(surplus<0){
puts("Deficit");continue;
}
}
else if((s>=0)&&(s<0.25*d)){
surplus=10*s-2*d;
if(surplus<0){
puts("Deficit");continue;
}
}
PD(surplus);
}
return 0;
}