牛客寒假集训6—出题
https://ac.nowcoder.com/acm/contest/332/A
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long n,m;
cin>>n>>m;
long long s=n/m,y=n%m;
if(s>=6&&s<=9)
{
if(s>=7)
{
if(y<=m*(9-s)) cout<<“0”<<endl;
else cout<<“jgzjgzjgz”<<endl;
}
else
{
if(y<=m*(9-s))
{
if(y>=m)cout<<“0”<<endl;
else cout<<m-y<<endl;
}
else cout<<“jgzjgzjgz”<<endl;
}
}
else cout<<“jgzjgzjgz”<<endl;
return 0;
}