General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
105489826 Practice:
NeekT
110A - 20 GNU C11 Wrong answer on test 7 30 ms 8 KB 2021-01-26 17:41:10 2021-01-26 17:41:10
→ Source
#include "stdio.h"

int main(){
  int i,c;
  long int n;
  scanf("%lld",&n);
  
  for(c=0; n>0; n/=10){
    if((n%10 == 4)||(n%10==7))
      c++;
  }

  
  if((c==4)||(c==7))
    printf("YES");
  else
    printf("NO");
  return 0;
}
?
Time: ? ms, memory: ? KB
Verdict: ?
Input
?
Participant's output
?
Jury's answer
?
Checker comment
?
Diagnostics
?
Click to see test details