编写题解 2772: 苹果和虫子-while循环
摘要:解题思路:注意事项:参考代码:n,x,y=map(int,input().split())while y<(n*x): if y%x==0: print(n-(y//x)) ……
ceil和类型转换解决
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,x,y; double m; scanf("%d%……
编写题解 2772: 苹果和虫子
摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin >>n>>x>>y; y……
解法有很多,多思考进步才会大
摘要:解题思路:注意事项:参考代码: int n,x,y,s,c; scanf("%d %d %d",&n,&x,&y); //如果经过y时间%吃一个苹果所需时间x==0 //证明说经过的时间刚好……
题解 2772: 苹果和虫子
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, x, y; int a = 0; scanf("%d %d %d", &n, &x, &y); i……