2772: 苹果和虫子
摘要:解题思路:要判断虫子在规定时间内未吃的完整的苹果是否为整数注意事项:所剩苹果如果全是完整的,直接输出个数,不完整的要-1参考代码:#include<stdio.h>int main(){ in……
编写题解 2772: 苹果和虫子-while循环
摘要:解题思路:注意事项:参考代码:n,x,y=map(int,input().split())while y<(n*x): if y%x==0: print(n-(y//x)) ……
编写题解 2772: 苹果和虫子
摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin >>n>>x>>y; y……
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……