Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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
|
||||||||
2020-08-12 06:30:31
hrin tiin hha\ |
||||||||
2020-07-15 08:58:56
import java.util.*; import java.lang.*; class Main { public static void main (String[] args) throws java.lang.Exception { Scanner sc = new Scanner(System.in); int arr[] = new int[3]; for (int i = 0; i < 3; i++) { arr[i] = sc.nextInt(); } for (int n : arr) { if (n % 2 == 0) { System.out.println("YES"); } else System.out.println("NO"); } } } |
||||||||
2019-12-25 17:04:51
#include<iostream> using namespace std; main() { int a,b,c; scanf("%d %d %d", &a, &b, &c); if(a%2==0) printf("YES\n"); else printf("NO\n"); if(b%2==0) printf("YES\n"); else printf("NO\n"); if(c%2==0) printf("YES\n"); else printf("NO\n"); return 0; } jhn oilgmjtoi bdd ugldu ta hd kk |
||||||||
2019-10-24 18:18:41
#include<bits/stdc++.h> 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"; }ez suguudaa |
||||||||
2019-03-12 06:21:11
#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a%2==0) printf("YES\n"); else printf("NO\n"); if(b%2==0) printf("YES\n"); else printf("NO\n"); if(c%2==0) printf("YES\n"); else printf("NO\n"); return 0; } |
||||||||
2019-01-08 07:35:45
#include<bits/stdc++.h> int main (){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a%2==0) printf("YES\n"); else printf("NO\n"); if(b%2==0) printf("YES\n"); else printf("NO\n"); if(c%2==0) printf("YES\n"); else printf("NO\n"); } |
||||||||
2018-09-27 08:04:17
#include <iostream> using namespace std; int main() { int a,b,c; cin >>a>>b>>c; if(a%2==0){cout << "YES"<<"\n";} else if(a%2!=0){cout << "NO"<<"\n";} else if(a%2!=0){cout << "NO"<<"\n";} if(b%2==0){cout << "YES"<<"\n";} else if(b%2!=0){cout << "NO"<<"\n";} else if(b%2!=0){cout << "NO"<<"\n";} if(c%2==0){cout << "YES"<<"\n";} else if(c%2!=0){cout << "NO"<<"\n";} else if(c%2!=0){cout << "NO"<<"\n";} } |
||||||||
2017-12-23 04:28:41
amka Last edit: 2017-12-23 04:29:17 |
||||||||
2015-01-11 08:01:43 Temuulen
bish ban aa |