题解 | #游游的数字圈#
游游的数字圈
https://www.nowcoder.com/practice/16eafa41a4a242b8870cb2c5420ae089
#include <stdio.h> int main() { char n; int count=0; while(scanf("%c",&n)!=EOF){ if (n=='0'||n=='6'||n=='9') { count++; }else if (n=='8') { count+=2; } } printf("%d",count); return 0; }