Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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-02-28 14:38:08
#include<stdio.h> main() { int a, b, c; scanf("%d\n%d\n%d",&a,&b,&c); int x[]={a,b,c}; for(int i=0; i<=x[i];i++) if(x[i]%2==0) { printf("YES\n",x[i]); } else printf("NO\n",x[i]); } //jaahan tovch hha AIZEN xD |
||||||||
2022-02-21 08:21:08
iimhen yum bodoj chadku commentaas huuldag cham shig humuus hol yuvhgudee |
||||||||
2022-02-08 17:13:33
#include <stdio.h> main() { int a,b,c; scanf("%d\n%d\n%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"); } |
||||||||
2022-01-07 05:29:06
khatnaa bna c++ #include <iostream> using namespace std; int main() { int a,b,c; 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; } return 0; } Last edit: 2022-01-07 05:33:52 |
||||||||
2021-10-31 18:05:57
Michidmaa bitgy sugaraad bailda, sain bod, chi chadna |
||||||||
2021-10-17 06:10:29
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if (a % 2 == 0) { System.out.println("YES"); } else { System.out.println("NO"); } if (b % 2 == 0) { System.out.println("YES"); } else { System.out.println("NO"); } if (c % 2 == 0) { System.out.println("YES"); } else { System.out.println("NO"); } } goy mahchihalcan kkk |
||||||||
2021-03-25 14:23:38
#include<bits/stdc++.h> #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"); } } |
||||||||
2020-10-23 15:03:34
/n ni yag yamr uchirtain bee??????? |
||||||||
2020-10-23 03:28:34
#include <iostream> using namespace std; int main(){ int a , b , c; ; 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; } return 0; } |
||||||||
2020-10-19 08:26:05
"\n" zai awjagamuu yagaad heregleed bgn sdag |