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
2019-11-10 17:45:55


Last edit: 2019-11-10 17:46:18
2019-10-24 17:49:12
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,e=0;
cin>>a>>b>>c>>d;
if(a%3==0) e=e+1;
if(b%3==0) e=e+1;
if(c%3==0) e=e+1;
if(d%3==0) e=e+1;
cout<<e;
}ez4me
2019-10-10 14:32:19
#include<stdio.h>
int main()
{
int a,b,c,d,n=0;
scanf("%d%d%d%d",&a,&b,&c,&d);
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;
}


printf("%d",n);
}
2019-06-05 16:25:08
gfgf
2019-04-08 04:30:33
yooooooo deer yuiin bodoltoo olosh huurhii bi
#include<stdio.h>
using namespace std;
int main(){
int a,b,c,d;
int t=0;
int q=1;
int w=2;
int e=3;
int r=4;

scanf("%d%d%d%d",&a,&b,&c,&d);
if ((a%3==0)&&(b%3==0)&&(c%3==0)&&(d%3==0)){
printf("%d",r);
}
else if ((a%3==0)&&(b%3==0)&&(c%3==0)&&(d%3!=0)){
printf("%d",e);
}
else if ((a%3==0)&&(b%3==0)&&(c%3!=0)&&(d%3==0)){
printf("%d",e);
}
else if ((a%3==0)&&(b%3!=0)&&(c%3==0)&&(d%3==0)){
printf("%d",e);
}
else if ((a%3!=0)&&(b%3==0)&&(c%3==0)&&(d%3==0)){
printf("%d",e);
}
else if ((a%3==0)&&(b%3==0)&&(c%3!=0)&&(d%3!=0)){
printf("%d",w);
}
else if ((a%3==0)&&(b%3!=0)&&(c%3==0)&&(d%3!=0)){
printf("%d",w);
}
else if ((a%3==0)&&(b%3!=0)&&(c%3!=0)&&(d%3==0)){
printf("%d",w);
}
else if ((a%3!=0)&&(b%3==0)&&(c%3==0)&&(d%3!=0)){
printf("%d",w);
}
else if ((a%3!=0)&&(b%3==0)&&(c%3!=0)&&(d%3==0)){
printf("%d",w);
}
else if ((a%3!=0)&&(b%3!=0)&&(c%3==0)&&(d%3==0)){
printf("%d",w);
}
else if ((a%3==0)&&(b%3!=0)&&(c%3!=0)&&(d%3!=0)){
printf("%d",q);
}
else if ((a%3!=0)&&(b%3==0)&&(c%3!=0)&&(d%3!=0)){
printf("%d",q);
}
else if ((a%3!=0)&&(b%3!=0)&&(c%3==0)&&(d%3!=0)){
printf("%d",q);
}
else if ((a%3!=0)&&(b%3!=0)&&(c%3!=0)&&(d%3==0)){
printf("%d",q);
}
else{
printf("%d",t);
}

return 0;
}



2019-03-25 04:31:17
#include <iostream>
using namespace std;
main()
{
int a,b,c,d,e;
cin>>a>>b>>c>>d;
e=0;
if (a%3==0) e=e+1;
if (b%3==0) e=e+1;
if (c%3==0) e=e+1;
if (d%3==0) e=e+1;
cout<<e;
2018-12-19 05:08:26
#include<stdio.h>
main()
{
int a,b,c,d,n;
scanf("%d %d %d %d",&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;
printf("%d",n);
}
2018-12-18 06:59:57
#include<bits/stdc++.h>
using namespace std;
main ()
{
int a,b,c,d,p;
cin>>a>>b>>c>>d;
p=0;
if (a%3==0) p=p+1;
if (b%3==0) p=p+1;
if (c%3==0) p=p+1;
if (d%3==0) p=p+1;
cout<<p<<endl;
return 0;
}
2018-12-18 06:59:55
#include<bits/stdc++.h>
using namespace std;
main ()
{
int a,b,c,d,p;
cin>>a>>b>>c>>d;
p=0;
if (a%3==0) p=p+1;
if (b%3==0) p=p+1;
if (c%3==0) p=p+1;
if (d%3==0) p=p+1;
cout<<p<<endl;
return 0;
}
2018-12-12 14:50:14
#include<stdio.h>
int main()
{
//freopen("a.in","r","stdin");
//freopen("a.out","w","stdout");
int a,b,c,d,sum;
scanf("%d %d %d %d",&a,&b,&c,&d);
sum=0;
if(a%3==0)sum=sum+1;
else sum=sum+0;
if(b%3==0)sum=sum+1;
else sum=sum+0;
if(c%3==0)sum=sum+1;
else sum=sum+0;
if(d%3==0)sum=sum+1;
else sum=sum+0;
printf("%d",sum);amana
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.