题解 2772: 苹果和虫子

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

筛选

用ceil函数即可

摘要:解题思路:ceil函数可实现向上求整,此题思路为向下求整,故减一即可。注意事项:参考代码:  #include<iostream>  using namespace std;  #include<cm……

题解 2772: 苹果和虫子

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

新手必看,苹果和虫子

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,x,y; scanf("%d %d %d",&n,&x,&y); int e=y/x; i……

苹果和虫子

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n,b,a,x;    scanf("%d %d %d",&n,&b,&a);    x=n-(a……

编写题解 2772: 苹果和虫子

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

2772: 苹果和虫子

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

2772:苹果与虫子

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,x,y;  scanf("%d%d%d",&n,&x,&y); if(y%x==0)   prin……

苹果和虫子C语言

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,x,y;  int d;    float c;    scanf("%d %d %d",&n,&……