Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7114 - Тэгш тоонууд YES |
Гурван тоо өгөгдөнө. Тоо тэгш бол YES үгүй бол NO гэж хэвлэ.
Input
Int төрлийн 3 тоо нэг нэг мөрөнд өгөгдөнө.
Output
Тоо тус бүрийг шалгаад нэг нэг мөрөнд хариуг хэвлэ.
Example
Input:
3
4
5
Output:
NO
YES
NO
Нэмсэн: | Bataa |
Огноо: | 2011-05-31 |
Хугацааны хязгаарлалт: | 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
|
||||||||
2023-11-21 07:48:26
2023-11-21 07:25:57 ( 2023-11-21 07:25:57 ( 2023-11-21 07:25:57 ( |
||||||||
2023-11-03 05:58:38
sssss |
||||||||
2023-10-20 13:29:25
hulha boli malaa |
||||||||
2023-10-10 06:05:44
ene hurtel irsend bayr hurgiii odoo buuj ogojhgu bol amidralgu bollo shutisiin arhicidaa |
||||||||
2023-05-29 07:09:12
#include <iostream> using namespace std; int main() { int a, s, c; cin>>a>>s>>c; if(a%2==0){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } if(s%2==0){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } if(c%2==0){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; } |
||||||||
2023-04-05 07:41:01
#include <iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if (a%2==0) cout<<"YES\n"; else cout<<"NO\n"; if (b%2==0) cout<<"YES\n"; else cout<<"NO\n"; if (c%2==0) cout<<"YES\n"; else cout<<"NO\n"; return 0; } |
||||||||
2023-04-05 07:39:34
#include <iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if (a%2==0) cout<<"YES\n"; else cout<<"NO\n"; if (b%2==0) cout<<"YES\n"; else cout<<"NO\n"; if (c%2==0) cout<<"YES\n"; else cout<<"NO\n"; return 0; } |
||||||||
2023-04-05 07:38:16
#include<bits/stdc++.h> using namespace std; int main () { int a,b,c,d,e,f,g; cin>>a>>b>>c; if(a%2==0){ cout<<"YES\n"; }else cout<<"NO\n"; if(b%2==0) cout<<"YES\n"; }else cout<<"NO\n"; if (c%2==0) cout<<"YES\n"; }else cout<<"NO\n"; } |
||||||||
2023-01-17 15:05:04
a=int(input()) b=int(input()) c=int(input()) if(a%10%2==0): print("YES") else: print("NO") if(b%10%2==0): print("YES") else: print("NO") if(c%10%2==0): print("YES") else: print("NO") Delgerekh^^ |
||||||||
2022-12-21 17:59:19
#include <stdio.h> char * wether(int x){ if(x%2 == 0){ return "YES"; }else{ return "NO"; } } int main(void) { // your code here int a,b,c; scanf("%d%d%d",&a,&b,&c); char* f = wether(a); char* s = wether(b); char* t = wether(c); printf("%s\n%s\n%s",f,s,t); return 0; } |