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-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);
}
2022-03-31 09:11:26
#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;
}
2022-03-30 05:08:57
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,n,k=0;
cin>>a>>b>>c>>n;

if(a%3==0)k=k+1;
else k=k+0;
if(b%3==0)k=k+1;
else k=k+0;
if(c%3==0)k=k+1;
else k=k+0;
if(n%3==0)k=k+1;
else k=k+0;

cout<<k<<endl;

return 0;
}
eniig huulval mal bolno
2022-03-07 08:20:30
zail
2022-02-18 01:27:32
bhguu
2022-02-08 16:40:21
#include <stdio.h>
main()
{
int a[4],i,n=0;
for (i=0;i < 4; i++)
{
scanf("%d",&a[i]);
if (a[i]%3==0) n++;
}
printf("%d ",n);
}
EZ xD
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.