Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7503 - Сондгой нь их үү

Нэг хэмжээст массив дахь сондгой тоонууд нь тэгш тоонуудаасаа их бол YES, үгүй бол NO гэж хэвлэ.

Input

Эхний мөрөнд массив дахь элементийн тоо.

Дараагийн мөрүүдэд массивын элементүүд нэг нэгээрээ өгөгдөнө.

Output

Сондгой нь их бол YES, үгүй бол NO.

Example

Input:
5
2
3
4
1
7
Output: YES

Нэмсэн:Bataa
Огноо:2013-01-15
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2022-04-02 06:49:18
NAA site cin ycad bga bidda ve
#include<iostream>
using namespace std;
main()
{
int n,i,a[100],p,s=0;
cin>>n;
for(i=1;i<=n;i++)
cin>>a[i];
for(i=1;i<=n;i++)
if(a[i]%2==1)
s+=1;
else
p+=1;
if(s>p)
cout<<"YES";
else
cout<<"NO";
}
2022-04-02 06:47:39
glgin sitewe ene bolj nga shu
#include<iostream>
using namespace std;
main()
{
int i,a[100],s=0,t=0,n;
cin>>n;
for(i=1;i<=n;i++)
cin>>a[i];
for(i=1;i<=n;i++)
if(a[i]%2==0)
s+=1;
if(a[i]%3==0)
t+=1;
if(s>t)
cout<<"YES";
else
cout<<"NO";
}
2021-12-15 17:30:37
var a = [5,2,3,4,1,7];
var b = 0;
var c = 0;
for(var i = 0; i < a.length; i++){
if(a[i] % 2 === 0){
b = b + a[i];
}
else if(a[i] % 2 === 1){
c = c + a[i];
}


}
if(b > c){
console.log("NO");
}
else {
console.log("Yes")
}
JS
2021-11-09 09:39:53
you are gay.
2021-11-09 09:38:04
if you read this shit you are cheating and go away.
2021-11-09 09:37:25
you are a lonly people
2021-11-09 09:36:37
hi look lo
nly people
2020-11-19 14:36:31
#include <stdio.h>

int main(){
int i,n,b=0,a[100], d=0;
scanf("%d", &n);
for(i=0;i<n;i++){
scanf("%d", &a[i]);
if(a[i]%2==0)
b=b+1; else d=d+1;
}
if(d<b)printf("NO");
else printf("YES");
return 0;
} энэ яг юун болохгүй байгаан бол
2020-11-19 14:36:09
#include <stdio.h>

int main(){
int i,n,b=0,a[100], d=0;
scanf("%d", &n);
for(i=0;i<n;i++){
scanf("%d", &a[i]);
if(a[i]%2==0)
b=b+1; else d=d+1;
}
if(d<b)printf("NO");
else printf("YES");
return 0;
} энэ яг юун болохгүй байгаан бол
2020-11-07 03:53:01
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long n,a[10000],i,s=0,p=0;
cin>>n;
for(i=0;i<n;i++)
cin>>a[i];
for(i=0;i<n;i++)
if(a[i]%2==0) s=s+1;
else if(a[i]%2==1) p=p+1;
if(s<p) cout<<"YES";
else cout<<"NO";
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.