import java.util.Scanner;
public class P5660数字游戏 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
String st=sc.nextLine();
int sh=0;
int s=st.length();
for(int i=0;i<s;i++) {
int b=st.charAt(i)-48;
if(b==1) sh++;
}
System.out.println(sh);
}
}
P5660 [CSP-J2019] 数字游戏
最新推荐文章于 2024-07-26 19:15:53 发布