Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7109 - Тэнцүү 5

Өгөгдсөн 3 тоон дотроос 5-тай тэнцүү тоонуудын тоог ол.

Input

Нэг мөрөнд Int төрлийн 3 тоо зайгаар тусгаарлагдан өгөгдөнө.

Output

5-тай тэнцүү тоонуудын тоо.

Example

Input:
2 5 5

Output:
2

Нэмсэн:Bataa
Огноо:2011-05-26
Хугацааны хязгаарлалт:0.200s
Эх кодын хэмжээний хязгаарлалт: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-06-28 12:19:15
#include <iostream>
using namespace std;

int main () {
int a, b, c, d;
cin >> a >> b >> c;
d = 0;
if ( a == 5 ) d = d + 1;

if ( b == 5 ) d = d + 1;

if ( c == 5 ) d = d + 1;
cout << d << endl;
return 0;
}
im god
2022-06-24 13:59:02

News
Problems
Status
Ranking

Forum
SPOJ
time:
2022-06-24

13 : 58 : 16

Бодолт илгээх Миний бодолтууд Бүх бодолтууд Шилдэг бодолтууд PDF Жагсаалт руу буцах
RGB7109 - Тэнцүү 5
Өгөгдсөн 3 тоон дотроос 5-тай тэнцүү тоонуудын тоог ол.

Input
Нэг мөрөнд Int төрлийн 3 тоо зайгаар тусгаарлагдан өгөгдөнө.

Output
5-тай тэнцүү тоонуудын тоо.

Example
Input:
2 5 5

Output:
2
Нэмсэн: Bataa
Огноо: 2011-05-26
Хугацааны хязгаарлалт: 0.200s
Эх кодын хэмжээний хязгаарлалт: 50000B
Memory limit: 1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд: ADA95 ASM32 BASH BF C CSHARP CPP C++ 4.3.2 C99 CLPS LISP clisp LISP sbcl D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO 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
Өмнөх 1 2 3 4 Дараагийн >
2022-06-21 12:13:13
#include <iostream>
using namespace std;
main()
{
int a,b,c,d;
cin>>a>>b>>c;
d=0;
if (a==5) d=d+1;
if (b==5) d=d+1;
if (c==5) d=d+1;
cout<<d;
}khandmaa to baatarkhuu
2022-05-11 11:39:47
#include<stdio.h>
int main()
{
int a,b,c,n,i,m,sum;
scanf("%d%d%d",&a,&b,&c);
if(a==5)
{
n=1;
}
else{
n=0;
}
if(b==5)
{
i=1;
}
else
{
i=0;
}
if(c==5)
{
m=1;
}
else
{
m=0;
}
sum=n+i+m;
printf("%d",sum);


}//dev c++
2022-04-07 12:15:57
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int count = 0;
int[] arr = new int[3];
for(int i = 0; i < 3; i++) {
arr[i] = sc.nextInt();
}
for(int i : arr) {
if (i == 5) {
count++;
}
}
System.out.println(count);
}
2022-03-30 12:04:18
eee gulug uassh
2022-03-30 12:03:33
Abdulla bolio bitgii huulaa
2022-03-28 03:54:07
#include<stdio.h>
int main(){
int a,b,c,k=0;
scanf("%d%d%d",&a,&b,&c);
if(a==5) k++;
if(b==5) k++;
if(c==5) k++;
printf("%d",k);
}
jich so ez ahaasn huul main minii duu
2022-03-23 10:09:38
#include<stdio.h>
int main()
{
int a, b, c, k=0, l, p, f;
scanf("%d %d %d", &a, &b, &c);
if(a==5) k++;
if(b==5) k++;
if(c==5) k++;


printf("%d",k);

return 0;
}
2021-12-13 18:48:50
eeezz ym baigaa uugna Jich: JS

var a = [5, 5,5,4];
var num = 0;
for(var i = 0; i<a.length; i++){
if(a[i] === 5){
num = num + 1;
}
}
console.log(num)

Last edit: 2021-12-13 18:49:34
2021-12-04 04:23:22
fuck
2021-10-17 05:42:50
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int count = 0;
int[] arr = new int[3];
for(int i = 0; i < 3; i++) {
arr[i] = sc.nextInt();
}
for(int i : arr) {
if (i == 5) {
count++;
}
}
System.out.println(count);
}
Leave a Comment
|Notes:|
1. Don't post any source code here.|
2. Please be careful, leave short comments only. Don't spam here.|
3. For more discussion (hints, ideas, solutions) please visit our forum.|
4. Authors are allowed to delete the post and use html code here (e.g. to provide some useful links).|
About SPOJ RSS
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.
2022-06-21 12:13:13
#include <iostream>
using namespace std;
main()
{
int a,b,c,d;
cin>>a>>b>>c;
d=0;
if (a==5) d=d+1;
if (b==5) d=d+1;
if (c==5) d=d+1;
cout<<d;
}khandmaa to baatarkhuu
2022-05-11 11:39:47
#include<stdio.h>
int main()
{
int a,b,c,n,i,m,sum;
scanf("%d%d%d",&a,&b,&c);
if(a==5)
{
n=1;
}
else{
n=0;
}
if(b==5)
{
i=1;
}
else
{
i=0;
}
if(c==5)
{
m=1;
}
else
{
m=0;
}
sum=n+i+m;
printf("%d",sum);


}//dev c++
2022-04-07 12:15:57
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int count = 0;
int[] arr = new int[3];
for(int i = 0; i < 3; i++) {
arr[i] = sc.nextInt();
}
for(int i : arr) {
if (i == 5) {
count++;
}
}
System.out.println(count);
}
2022-03-30 12:04:18
eee gulug uassh
2022-03-30 12:03:33
Abdulla bolio bitgii huulaa
2022-03-28 03:54:07
#include<stdio.h>
int main(){
int a,b,c,k=0;
scanf("%d%d%d",&a,&b,&c);
if(a==5) k++;
if(b==5) k++;
if(c==5) k++;
printf("%d",k);
}
jich so ez ahaasn huul main minii duu
2022-03-23 10:09:38
#include<stdio.h>
int main()
{
int a, b, c, k=0, l, p, f;
scanf("%d %d %d", &a, &b, &c);
if(a==5) k++;
if(b==5) k++;
if(c==5) k++;


printf("%d",k);

return 0;
}
2021-12-13 18:48:50
eeezz ym baigaa uugna Jich: JS

var a = [5, 5,5,4];
var num = 0;
for(var i = 0; i<a.length; i++){
if(a[i] === 5){
num = num + 1;
}
}
console.log(num)

Last edit: 2021-12-13 18:49:34
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.