返回小组 开始 2023-10-06 16:00:00

10.06下午

结束 2023-10-06 17:00:00
Contest is over.
当前 2024-11-22 05:20:07


include <stdio.h>

include

include

using namespace std;

int main() {

//freopen("number.in", "r", stdin);
//freopen("number.out", "w", stdout);
string a;
int s[9], d = 0;
getline(cin, a);
for (int i = 0; i <= 8; i++) {
	s[i] = a.size();
	if (a[i] == '1') {
		d++;
	}
}
printf("%d", d);
return 0;

}


zhaoyihao  •  1年前

比赛已结束。