Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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
|
||||||||
2022-12-02 06:24:45
#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; } |
||||||||
2022-11-07 08:28:27
#include <iostream> using namespace std; int main() { int a,b,c,s=0,d; cin>>a>>b>>c; if (a%2==0) {cout<<"YES"<<endl;} else {cout<<"NO"<<endl;} if (b%2==0) {cout<<"YES"<<endl;} else {cout<<"NO"<<endl;} if (c%2==0) {cout<<"YES"<<endl;} else {cout<<"NO"<<endl;} } Good answer |
||||||||
2022-10-19 04:33:31
dig bick |
||||||||
2022-10-19 04:32:41
boov |
||||||||
2022-09-30 09:08:25
9-11-69 |
||||||||
2022-05-17 14:37:00
a = int(input()) b = int(input()) c = int(input()) if(a%2==0): print("YES") else: print("NO") if(b%2==0): print("YES") else: print("NO") if(c%2==0): print("YES") else: print("NO") |
||||||||
2022-04-27 10:31:45
......................... Last edit: 2022-04-27 10:32:23 |
||||||||
2022-04-01 03:42:39
egc ni ta nariig ni bodwol python dre neg murund bdson zaa gs teriig n unshihgu bur uur hureed suuj blaa |
||||||||
2022-04-01 03:39:43
ta nar python dr bodcij cdhimu tgul hooy |
||||||||
2022-03-18 06:05:18
#include <iostream> #include <cmath> using namespace std; int main() { int n[3]; for (int i = 0; i < 3; i++) { cin >> n[i]; } for (int j = 0; j < 3; j++) if (n[j] % 2 == 0) { cout << "YES" << endl; } else cout << "NO" << endl; return 0; } ingej hiideg bga shvvv kkkkkk |