Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
26912 | 肖静 | 字符串的长度 | C++ | Accepted | 1 MS | 704 KB | 266 | 2022-05-27 21:16:18 |
#include <iostream> #include <cstdio> #include <string.h> using namespace std; int main() { char n[100]; int strlens(char n1[100]); cout<<strlens(n); return 0; } int strlens(char n1[100]) { gets(n1); int STRLEN=strlen(n1); return (STRLEN); }