-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEILAPTOP.cs
48 lines (44 loc) · 1.24 KB
/
EILAPTOP.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EILAPTOP
{
public class Program
{
public static void Main(string[] args)
{
var t = NextInt();
var big = false;
var small = false;
while (t-- > 0)
{
var tmp = NextInt() - NextInt();
if (tmp>0)
{
big = true;
}
if (tmp<0)
{
small = true;
}
}
Console.WriteLine(big == true && small == true ? "Happy Beo" : "Poor Beo");
}
static int s_index = 0;
static List<string> s_tokens;
private static string Next()
{
while (s_tokens == null || s_index == s_tokens.Count())
{
s_tokens = Console.ReadLine().Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList();
s_index = 0;
}
return s_tokens[s_index++];
}
private static int NextInt()
{
return Int32.Parse(Next());
}
}
}