2772: 苹果和虫子 摘要:解题思路:每x小时吃掉1个苹果,n个苹果nx小时,nx-y是未吃掉的苹果的用时,(nx-y)/x是剩下的苹果。注意事项:都是提交成功过的,可以直接使用。参考代码:#include<iostrea…… 题解列表 2026年05月23日 0 点赞 0 评论 43 浏览 评分:0.0
C++简单解法 摘要:解题思路:此题属于简单题,主要需要知道向上取整的函数ceil(),其他的基本都是基础知识注意事项:参考代码:#include<iostream>#include<cmath>#…… 题解列表 2025年03月03日 0 点赞 0 评论 513 浏览 评分:10.0
苹果和虫子 摘要:#include<iostream>using namespace std;int main(){ int n,z,k; double x,y,a; cin>>n>>x>>y; a=y/x; k=0;…… 题解列表 2024年03月10日 0 点赞 0 评论 442 浏览 评分:0.0
编写题解 2772: 苹果和虫子 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin >>n>>x>>y; y…… 题解列表 2024年01月06日 0 点赞 0 评论 380 浏览 评分:0.0
题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){float n, x, y, s;cin …… 题解列表 2023年12月23日 0 点赞 0 评论 410 浏览 评分:9.9
2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>>x…… 题解列表 2023年12月16日 0 点赞 0 评论 374 浏览 评分:9.9
题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>>x…… 题解列表 2023年11月30日 0 点赞 0 评论 386 浏览 评分:4.7
题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int x,y,n; cin>>n>>x>>y; i…… 题解列表 2023年11月26日 0 点赞 0 评论 323 浏览 评分:9.9
编写题解 2772: 苹果和虫子 摘要:解题思路:无注意事项:无参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>…… 题解列表 2023年11月26日 0 点赞 0 评论 547 浏览 评分:9.9
2772: 苹果和虫子 摘要:```cpp #include #include using namespace std; int main() { int n; double x, y; …… 题解列表 2023年11月22日 0 点赞 0 评论 343 浏览 评分:0.0