| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 435285 | 任晨熙 | 26年2月-A组(萌新)B. 环形密码 | C++ | 通过 | 100 | 2 MS | 256 KB | 254 | 2026-04-04 18:57:04 |
#include<bits/stdc++.h> using namespace std; string s,t; int main(){ int n; cin>>s>>t; int l=s.size(); for(int i=0;i<l;i++){ if(s[i]==t[0]){ n=i; break; } } int m=l-n; if(m<l-m){ cout<<m; }else { cout<<l-m; } return 0; }