Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
150886 李朋秦 利用指针编写strlen函数 C++ Accepted 1 MS 280 KB 198 2026-04-02 09:56:33

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int f(char x[1001]){ int i=0; while(x[i]!='\0'){ i++; }return i; } int main() { char s[1001]; cin>>s; cout<<f(s); return 0; }