题解 2772: 苹果和虫子

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

筛选

数学逻辑简单一点点

摘要:解题思路:首先,我们需要解决一道数学题,可以直接解题,也可以选择代具体的数字,然后把这题逻辑理清楚;然后把它用代码说出来,代码输出结果不是我们理想的结果,我们就根据结果不理想的地方再改改。注意事项:参……

2772: 苹果和虫子

摘要:解题思路:要判断虫子在规定时间内未吃的完整的苹果是否为整数注意事项:所剩苹果如果全是完整的,直接输出个数,不完整的要-1参考代码:#include<stdio.h>int main(){     in……

苹果和虫子

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

小白编程11111

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

java--study||O.o

摘要:参考代码:import java.util.Scanner; public class Main {   public static void main(String[] args) {  ……

题解 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……