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.|

RGB7110 - 3-д хуваагдах

Өгөгдсөн 4 тоон дотроос 3-д хуваагддаг тоонуудын тоог ол. 

Input

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

Output

3-д хуваагддаг тоонуудын тоо.

Example

Input:
3 12 8 9

Output:
3

Нэмсэн:Bataa
Огноо:2011-05-27
Хугацааны хязгаарлалт:0.203s
Эх кодын хэмжээний хязгаарлалт: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
2023-05-29 07:07:21
#include <iostream>
using namespace std;
int main() {
int s, m, t=0, c, h, n;
cin>>n>>h>>s>>c;
if(n%3==0) t++;
if(h%3==0) t++;
if(s%3==0) t++;
if(c%3==0) t++;
cout<<t;
return 0;
}
.
2023-04-05 07:46:21
#include <iostream>
using namespace std;

int main () {
int a,b,c,d,n;
cin >> a >> b >> c >> d;
n=0;
if (a%3==0) n=n+1;
if (b%3==0) n=n+1;
if (c%3==0) n=n+1;
if (d%3==0) n=n+1;
cout << n << endl;
return 0;
}
2023-04-05 07:37:08
im the guy that makes a indian collage vidoes
2023-04-05 07:32:51
yeee me too man
2023-04-04 08:23:02
huuyee ene dotor chatlah hun bnuu

Last edit: 2023-04-04 08:23:53
2023-03-14 03:53:41
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,e,d;
cin>>a>>b>>c;
d=0;
if(a%3==0) d=d+1;
if(b%3==0) d=d+1;
if(c%3==0) d=d+1;
if(e%3==0) d=d+1;
cout<<d<<endl;
return 0;
}huul suguuda
2023-03-02 09:55:10
olziiii gay shuu
2022-11-15 09:51:00
elbegdalai serjkhorol is gay
2022-11-14 09:48:34
a,b,c,d= [int(x) for x in input().split()]
s=0
if (a%3==0):
s=s+1
if(b%3==0):
s=s+1
if(c%3==0):
s=s+1
if(d%3==0):
s=s+1
print(s)
huul2
2022-05-11 11:47:11
#include<stdio.h>
int main()
{
int a,b,c,d,n,a1,b1,c1,d1;
scanf("%d%d%d%d",&a,&b,&c,&d);
if(a%3==0)
{
a1=1;
}
else
{
a1=0;
}
if(b%3==0)
{
b1=1;
}
else
{
b1=0;
}
if(c%3==0)
{
c1=1;
}
else
{
c1=0;
}
if(d%3==0)
{
d1=1;
}
else
{
d1=0;
}
n=a1+b1+c1+d1;
printf("%d",n);
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.