#C. [S0001C]groundhog or marmot

    Type: Default 1000ms 256MiB

[S0001C]groundhog or marmot

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

S1C{\color{Red} \mathcal {{\LARGE S_{1C}} } }

背景

土拨鼠大战开始了。^_^ 是两种土拨鼠!

说明

帮助marmot获得胜利! 采用回合制。

格式

输入

三行,第一行只数,第二行我军各个团战斗力,第三行敌军各个团战斗力。

N

a1a_{1} a2a_{2} a3a_{3} ... aNa_{N}

b1b_{1} b2b_{2} b3b_{3} ... bNb_{N}

输出

是否能赢(“Yes”|“No”)

样例

5
1 2 3 4 5
1 2 3 4 6
Yes

提示

两军土拨鼠同样多, 且为单数 平局也输

3N105,ai105,bi1053\le N\le 10^{5},a_{i}\le 10^{5},b_{i}\le 10^{5}

S1考前模拟赛

Not Attended
Status
Done
Rule
OI
Problem
3
Start at
2024-10-19 12:00
End at
2024-10-22 12:00
Duration
72 hour(s)
Host
Partic.
1