| 比赛 | 期末考试0 | 评测结果 | WWWAAWWWWW |
|---|---|---|---|
| 题目名称 | Sayaku,移动 | 最终得分 | 20 |
| 用户昵称 | 郑霁桓 | 运行时间 | 0.029 s |
| 代码语言 | C++ | 内存使用 | 3.67 MiB |
| 提交时间 | 2026-02-07 12:17:02 | ||
#include <bits/stdc++.h>
using namespace std;
int n,p1;
char c[2005];
int main(){
freopen("movement.in","r",stdin);
freopen("movement.out","w",stdout);
cin>>(c+1);
n=strlen(c+1);
for(int i=1;i<=n;i++){
if(c[i]=='1') p1=1;
}
if(n<=8){
cout<<n/2;
return 0;
}
if(p1){
cout<<1;
}else cout<<n;
return 0;
}