| Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|---|
| 435282 | 顾鑫辰 | 26年2月-A组(萌新)B. 环形密码 | C++ | 编译错误 | 0 | 0 MS | 0 KB | 289 | 2026-04-04 18:55:34 |
#include<iostream> #include<string> using namespace std; string s,t; 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; }