编写题解 2772: 苹果和虫子
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,x,y,sum=0; scanf("%d %d %d",&n,&x,&y); s……
2025.7.21刷题记录
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,x,y; scanf("%……
2772: 苹果和虫子
摘要:解题思路:每x小时吃掉1个苹果,n个苹果nx小时,nx-y是未吃掉的苹果的用时,(nx-y)/x是剩下的苹果。注意事项:都是提交成功过的,可以直接使用。参考代码:#include<iostrea……
题解 2772: 苹果和虫子
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, x, y; int a = 0; scanf("%d %d %d", &n, &x, &y); i……