using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
double zhongliang = Convert.ToDouble(Console.ReadLine());
double tiji = Convert.ToDouble(Console.ReadLine());
PhysicalObject p = new PhysicalObject(zhongliang,tiji);
p.MyMethod();
Console.ReadKey();
}
}
class PhysicalObject
{
private double weight;
private double tiji;
double midu;
public PhysicalObject(double w,double ti)
{
weight = w;
tiji = ti;
}
public double get_weight()
{
return weight;
}
public double get_tiji()
{
return tiji;
}
public void MyMethod()
{
midu = weight / tiji;
if (midu>1)
{
Console.WriteLine("物体会下沉");
}
else
{
if (midu==1)
{
Console.WriteLine("物体会悬浮在水面");
}
else
{
Console.WriteLine("物体会静止后漂浮");
}
}
}
}
}