Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
116803 小徐老师 输出字符 C++ Accepted 0 MS 272 KB 418 2025-04-12 15:11:45

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; // 字符串 /*1. strlen 求长度 strlen(s) 2. strcmp比较大小 strcmp(a, b) a > b -> 1 a < b -> -1 a == b -> 0 3. strcat连接 strcat(a, b) a = "he" b = "llo" "hello" 4. strcpy 拷贝 strcpy(a, b) a = b */ char s[100000]; int main() { cin >> s; for(int i = 0; i < strlen(s); ++i) cout << s[i] << ' '; cout << endl; return 0; }