#1578. 7的个数
7的个数
题目描述
输入一个正整数n,请你判断这个正整数包含多少个7
输入格式
一行,包含一个正整数n
输出格式
一行,包含一个正整数,表示n包含多少个7
样例输入1
677
样例输出1
2
样例输入2
7787
样例输出2
3
输入一个正整数n,请你判断这个正整数包含多少个7
一行,包含一个正整数n
一行,包含一个正整数,表示n包含多少个7
677
2
7787
3
By signing up a 羽润编程 universal account, you can submit code and join discussions in all online judging services provided by us.