Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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
|
||||||||
2024-06-23 05:05:35
.. |
||||||||
2024-06-22 05:49:41
... Last edit: 2024-06-23 05:05:52 |
||||||||
2024-03-07 03:25:58
#include <iostream> #include <sstream> #include <string> #include <cstdlib> #include <cmath> using namespace std; // Headers string toString (double); int toInt (string); double toDouble (string); int main() { int a, b, c, d; a = 0; cin >> a; cin >> b; cin >> c; if (a % 2 == 1) { cout << "NO" << endl; } else { cout << "YES" << endl; } if (b % 2 == 1) { cout << "NO" << endl; } else { cout << "YES" << endl; } if (c % 2 == 1) { cout << "NO" << endl; } else { cout << "YES" << endl; } return 0; } // The following implements type conversion functions. string toString (double value) { //int also stringstream temp; temp << value; return temp.str(); } int toInt (string text) { return atoi(text.c_str()); } double toDouble (string text) { return atof(text.c_str()); } |
||||||||
2024-01-19 04:57:46
#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-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; } |