using System;
using System.Linq;
namespace LuoGu
{
public class LuoGu
{
public static void Main(string[] args)
{
int[] nums = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
int m = nums[0];//苹果数量
int t = nums[1];//吃一个苹果需要的时间(min)
int s = nums[2];//过去了的时间(min)
//求剩下多少完整的苹果(向下取整)Math.Floor
if (t != 0)
{
double left = Math.Floor(m - 1.0 * s / t);
Console.WriteLine(left);
}
else
{
Console.WriteLine(m);
}
}
}
}
在我自己的编译器可以运行,在这里怎么编译失败啊