Cod sursa(job #1031407)
| Utilizator | Data | 15 noiembrie 2013 17:54:05 | |
|---|---|---|---|
| Problema | Dtcsu | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | FMI No Stress 4 | Marime | 0.62 kb |
#include <cstdio>
#include <vector>
#include <queue>
#include <cstring>
using namespace std;
#define WTF 276997
int res=0;
char text[277000][20];
void run()
{
}
bool fc(char c)
{
int x = c - '0';
if(x%2==0) return 1;
if(x==5) return 1;
return 0;
}
int main()
{
freopen("dtcsu.in","r",stdin);
freopen("dtcsu.out","w",stdout);
//int n=WTF;
for(size_t i=0;i<WTF;++i)
gets(text[i]);
char s[20];
scanf("%d",&n);
while(n--)
{
gets(s);
if( fc( s[strlen(s)-1]) ) ++res;
}
printf("%d",res);
return 0;
}
