2772: 苹果和虫子 摘要:解题思路:要判断虫子在规定时间内未吃的完整的苹果是否为整数注意事项:所剩苹果如果全是完整的,直接输出个数,不完整的要-1参考代码:#include<stdio.h>int main(){ in…… 题解列表 2024年08月02日 0 点赞 0 评论 510 浏览 评分:6.0
2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:import mathn, x, y = map(int,input().strip().split())print(math.floor(n - y / x)) …… 题解列表 2022年11月26日 0 点赞 0 评论 490 浏览 评分:4.7
题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>>x…… 题解列表 2023年11月30日 0 点赞 0 评论 179 浏览 评分:4.7
苹果和虫子 C语言 三步搞定 摘要:解题思路:简单数学问题,公式一套ok注意事项:输入格式注意空格,输出公式即可参考代码:#include<stdio.h>int main(){ int n,x,y; scanf("%d %…… 题解列表 2022年12月31日 0 点赞 0 评论 722 浏览 评分:2.9
苹果和虫子 摘要:```c #include int main() { int x,y,n,a; scanf("%d %d %d",&n,&x,&y); a=n-(y/x); …… 题解列表 2023年07月22日 0 点赞 0 评论 296 浏览 评分:2.0
2772: 苹果和虫子(Python) 摘要:解题思路:注意事项:参考代码:from decimal import * Pi=3.14159 tmp = input() n,x,y = tmp.split() n = int(n) x …… 题解列表 2023年02月10日 0 点赞 0 评论 377 浏览 评分:2.0
2025.7.21刷题记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,x,y; scanf("%…… 题解列表 2025年07月21日 0 点赞 0 评论 55 浏览 评分:0.0
编写题解 2772: 苹果和虫子-while循环 摘要:解题思路:注意事项:参考代码:n,x,y=map(int,input().split())while y<(n*x): if y%x==0: print(n-(y//x)) …… 题解列表 2024年02月26日 0 点赞 0 评论 289 浏览 评分:0.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 评论 218 浏览 评分:0.0
数学逻辑简单一点点 摘要:解题思路:首先,我们需要解决一道数学题,可以直接解题,也可以选择代具体的数字,然后把这题逻辑理清楚;然后把它用代码说出来,代码输出结果不是我们理想的结果,我们就根据结果不理想的地方再改改。注意事项:参…… 题解列表 2024年10月26日 0 点赞 0 评论 166 浏览 评分:0.0