我使用了我自己编的代码(如下)
#include<bits/stdc++.h> using namespace std; int main() { double sd,jl,ans=0; int st=1; scanf("%1lf%1lf",&sd,&jl); while(ans>=jl) { ans+=sd; st++; } printf("%d",st); return 0; }
然后输出了个寂寞……
em………………
求助