编写题解 2772: 苹果和虫子 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin >>n>>x>>y; y…… 题解列表 2024年01月06日 0 点赞 0 评论 80 浏览 评分:0.0
苹果和虫子 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner sc=new Sca…… 题解列表 2023年04月13日 0 点赞 0 评论 264 浏览 评分:0.0
题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, x, y; int a = 0; scanf("%d %d %d", &n, &x, &y); i…… 题解列表 2023年03月01日 0 点赞 0 评论 149 浏览 评分:0.0
解法有很多,多思考进步才会大 摘要:解题思路:注意事项:参考代码: int n,x,y,s,c; scanf("%d %d %d",&n,&x,&y); //如果经过y时间%吃一个苹果所需时间x==0 //证明说经过的时间刚好…… 题解列表 2023年02月27日 0 点赞 0 评论 154 浏览 评分:0.0
不废话直接秒 摘要:解题思路:floor函数向下取整注意事项:参考代码:import mathn,x,y=map(int,input().split())print(math.floor(n-1/x*y))…… 题解列表 2024年11月30日 0 点赞 0 评论 224 浏览 评分:0.0
ikun崩溃代码 摘要:解题思路:套用if函数判定小数部分舍去,不构成完整的苹果。注意事项:参考代码:#include <stdio.h>int main(){ int n,x,y,z; scanf("%d %d %d",…… 题解列表 2023年01月31日 0 点赞 0 评论 134 浏览 评分:0.0
用一个选择语句即可 摘要:解题思路:注意事项:要考虑整个苹果没吃完的情况参考代码:#include<stdio.h>#include<math.h>int main(){ int n,x,y; scanf("%d %d %d"…… 题解列表 2023年01月16日 0 点赞 0 评论 129 浏览 评分:0.0
编写题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,x,y,sum=0; scanf("%d %d %d",&n,&x,&y); s…… 题解列表 2024年12月05日 0 点赞 0 评论 131 浏览 评分:0.0
C语言 使用while循环解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main ( ){ int n=0 ,x=0 ;&nbs…… 题解列表 2025年01月02日 0 点赞 0 评论 163 浏览 评分:0.0
苹果和虫子 摘要:```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 评论 240 浏览 评分:2.0