题解 2772: 苹果和虫子

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

2772: 苹果和虫子

摘要:解题思路:每x小时吃掉1个苹果,n个苹果nx小时,nx-y是未吃掉的苹果的用时,(nx-y)/x是剩下的苹果。注意事项:都是提交成功过的,可以直接使用。参考代码:#include<iostrea……

C++简单解法

摘要:解题思路:此题属于简单题,主要需要知道向上取整的函数ceil(),其他的基本都是基础知识注意事项:参考代码:#include<iostream>#include<cmath>#……

苹果和虫子

摘要:#include<iostream>using namespace std;int main(){ int n,z,k; double x,y,a; cin>>n>>x>>y; a=y/x; k=0;……

题解 2772: 苹果和虫子

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){float n, x, y, s;cin ……

2772: 苹果和虫子

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double n,x,y;    cin>>n>>x……

题解 2772: 苹果和虫子

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double n,x,y;    cin>>n>>x……

题解 2772: 苹果和虫子

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int x,y,n;    cin>>n>>x>>y;    i……

编写题解 2772: 苹果和虫子

摘要:解题思路:无注意事项:无参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double n,x,y;    cin>>n>……

2772: 苹果和虫子

摘要:```cpp #include #include using namespace std; int main() { int n; double x, y; ……