| 比赛 | 期末考试0 | 评测结果 | WAWAAWWWWW |
|---|---|---|---|
| 题目名称 | Sayaku,移动 | 最终得分 | 30 |
| 用户昵称 | 汐汐很希希 | 运行时间 | 0.025 s |
| 代码语言 | C++ | 内存使用 | 3.67 MiB |
| 提交时间 | 2026-02-07 11:41:58 | ||
#include<bits/stdc++.h>
#define ll long long
const int N=20+10;
const int M=1e5+10;
const int MOD=1e9+7;
const int MAXX=2e9;
using namespace std;
string s;
int main()
{
freopen("movement.in","r",stdin);
freopen("movement.out","w",stdout);
cin>>s;
int len=s.length();
if(s[0]=='3'){
len=(len-1)/2-1;
cout<<len*2+3<<endl;
}
else if(s[0]=='1') cout<<1<<endl;
return 0;
}