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

ABR179B - Үлдэгдлүүд

n, q1, ..., qn натурал тоонууд өгөгдөв. q1, ..., qn дарааллын 7-д хуваахад 1, 2 эсвэл 5 гэсэн үлдэгдэл өгөх гишүүдийн тоог ол.

Input

n, q1, ..., qn натурал тоонууд хоорондоо зай болон мөр шилжүүлэх тэмдэгтээр тусгаарлагдан өгөгдөнө

Output

дээрх нөхцлийг хангасан гишүүдийн тоог хэвлэнэ

Example

Input:
6
8 9 8 2 8 4

Output:
5

Нэмсэн:sw40
Огноо:2008-01-10
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:Бүгд дараах хэлүүдээс бусад: ASM32-GCC MAWK BC C-CLANG NCSHARP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR ERL FANTOM FORTH GOSU GRV JS-RHINO JS-MONKEY JULIA KTLN NIM NODEJS OBJC OBJC-CLANG OCT PERL6 PICO PROLOG PYPY PYPY3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET
Эх сурвалж:Абрамов С. А.

hide comments
2013-01-30 11:08:00 M.Enkhbileg
#include <iostream>
#include <stdlib.h>
using namespace std;
main()
{
int i=0, n, s=0, d;
cin >> n;
while(i<n)
{
cin >> d;
if(d%7==2 || d%7==1 || d%7==5)
s++;
i++;
}
cout<<s;
system("PAUSE");
return 0;
}
2012-10-19 11:31:25 Delgerbayar
#include <stdio.h>
#include <stdlib.h>

int main()
{
int i, n, a, s=0;
scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%d", &a);
if(a%7==1 | a%7==2 | a%7==5)
s++;
}
printf("%d", s);
system("pause");
return 0;
}
2012-09-30 15:15:14 BaZo
#include<math.h>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
main()
{
int a[100000],b,c,d,m,n,o,x,y,z,g,h,i;
scanf("%d",&x);
b = 1;
c = 0;
while(b <= x){
for(i = 1;i <= x;i++){
scanf("%d",&a[i]);
b = b + 1;
}
}
for(i = 1;i <= x; i++){
if(a[i] % 7 == 1 || a[i] % 7 == 2 || a[i] % 7 == 5){
c = c + 1;
}
}
printf("%d",c);
system("pause");
}

2012-09-30 15:04:56 BaZo
#include<math.h>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
main()
{
int a[100000],b,c,d,m,n,o,x,y,z,g,h,i;
scanf("%d",&x);
b = 1;
c = 0;
while(b <= x){
for(i = 1;i <= x;i++)
scanf("%d",&a[i]);
b = b + 1;
}
for(i = 0;i <= x; i++){
if(a[i] % 7 == 1 || a[i] % 7 == 2 && a[i] % 7 == 5)
c = c + 1;
}
printf("%d",c);
system("pause");
}

2012-04-27 04:27:46 shinebayar
bodson hun ni bodlogo uldecheechee
2012-04-26 06:27:21 bilguun
eee yahuu!
2012-04-26 06:25:16 bilguun
bodoocheee
2012-04-26 05:55:35 saikhanbayar
yajjjjjj kkkkk
2012-04-18 07:08:08 monhbold
ewwerwe
grr
2012-03-24 06:41:35 akmoyu
hehe
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.