比赛 期末考试0 评测结果 WWWAAWWWWW
题目名称 Sayaku,移动 最终得分 20
用户昵称 LikableP 运行时间 0.017 s
代码语言 C++ 内存使用 1.62 MiB
提交时间 2026-02-07 11:07:33
显示代码纯文本
#include <cstdio>
#include <cstring>

int n;
char str[2010];
bool special = true;

int main() {
#ifdef LOCAL
  freopen("!input.in", "r", stdin);
  freopen("!output.out", "w", stdout);
#else
  freopen("movement.in", "r", stdin);
  freopen("movement.out", "w", stdout);
#endif
  
  scanf("%s", str + 1);
  n = strlen(str + 1);
  
  for (int i = 1; i <= n; ++i) { 
    if (str[i] == '2' || str[i] == '3') special = false;
  }
  
  printf("%d\n", special ? 1 : n);
  return 0;
}