S1C{\color{Red} \mathcal {{\LARGE S_{1C}} } }S1C
土拨鼠大战开始了。^_^ 是两种土拨鼠!
帮助marmot获得胜利! 采用回合制。
三行,第一行只数,第二行我军各个团战斗力,第三行敌军各个团战斗力。
N
a1a_{1}a1 a2a_{2}a2 a3a_{3}a3 ... aNa_{N}aN
b1b_{1}b1 b2b_{2}b2 b3b_{3}b3 ... bNb_{N}bN
是否能赢(“Yes”|“No”)
Yes
No
5 1 2 3 4 5 1 2 3 4 6
两军土拨鼠同样多, 且为单数 平局也输
3≤N≤105,ai≤105,bi≤1053\le N\le 10^{5},a_{i}\le 10^{5},b_{i}\le 10^{5}3≤N≤105,ai≤105,bi≤105
In following contests:
S1
$S1$
S1考前模拟赛
By signing up a acjudge universal account, you can submit code and join discussions in all online judging services provided by us.
Using your acjudge universal account