Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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-12-05 12:21:36
#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"; } buyna agaa bi bn |
||||||||
2024-12-05 12:19:34
agaa bi bodzon buyna |
||||||||
2024-11-29 02:32:19
|
||||||||
2024-11-28 08:57:12
|
||||||||
2024-11-26 07:45:00
Last edit: 2024-11-26 07:46:28 |
||||||||
2024-10-22 12:23:32
#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"; } huul |
||||||||
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"; } |