Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <stdio.h>
- #include <conio.h>
- char s[256];
- int count;
- int _tmain(int argc, _TCHAR* argv[]){
- freopen("a.in","r",stdin);
- while(scanf("%s",s) == 1){
- if(strlen(s) <= 4){
- count++;
- }
- }
- printf("%d\n", count);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement