using System;
namespace bj14681
{
class Program
{
static void Main(string[] args)
{
int x = int.Parse(Console.ReadLine());
int y = int.Parse(Console.ReadLine());
if (x > 0)
{
if (y > 0)
{
Console.WriteLine("1");
}
else if(y<0)
{
Console.WriteLine("4");
}
}
else if (x < 0)
{
if (y > 0)
{
Console.WriteLine("2");
}
else if (y < 0)
{
Console.WriteLine("3");
}
}
}
}
}
'C# > C# (백준)' 카테고리의 다른 글
[C#] 백준 알고리즘 2884번, 오븐 시계 (0) | 2022.07.21 |
---|---|
[C#] 백준 알고리즘 2884번, 알람 시계 (0) | 2022.07.20 |
[C#] 백준 알고리즘 9498번, 시험 성적 (0) | 2022.07.18 |
[C#] 백준 알고리즘 2753번, 윤년 (0) | 2022.07.18 |
[C#] 백준 알고리즘 2557번, Hello World (0) | 2022.07.18 |