| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 435283 | 顾鑫辰 | 26年2月-A组(萌新)B. 环形密码 | C++ | 解答错误 | 0 | 7 MS | 252 KB | 291 | 2026-04-04 18:55:57 |
#include<iostream> #include<string> using namespace std; string s1,s2; int n,l1; int main(){ cin>>s1>>s2; int l1=s1.size(); for(int i=1;i<=l1;i++){ if(s1[i]==s2[0]){ n-i; break; } } int m=l1-n; if(m<l1-m){ cout<<m; }else{ cout<<l1-m; } return 0; }