c++实现,思路简单明了 摘要:#代码#```cpp#include#includeusing namespace std;int main(){ string s1; int m; …… 题解列表 2025年08月25日 0 点赞 0 评论 130 浏览 评分:0.0
简单易于理解的字符串提取问题——Python 摘要:a=eval(input())b=list(input())c=eval(input())foriinb[c-1:]:&nb…… 题解列表 2025年01月16日 1 点赞 0 评论 278 浏览 评分:10.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[150]; int i,n,m; scanf("%d",&n); scan…… 题解列表 2024年12月04日 0 点赞 0 评论 801 浏览 评分:0.0
[C语言]字符串拷贝——易懂方法 摘要:解题思路:注意事项:一定要注意字符长度要算上结束符哦!并且要在程序中添加结束字符!参考代码:#include<stdio.h>#include<string.h>int main(){int n,i,…… 题解列表 2024年11月29日 0 点赞 0 评论 516 浏览 评分:0.0
[编程入门]自定义函数之字符串拷贝 摘要:解题思路:题目根本没要求复制,其实也用不着复制,只需要把指针定位到相应序号后输出即可注意事项:参考代码:#include <stdio.h> #include <stdlib.h> int m…… 题解列表 2024年11月18日 0 点赞 0 评论 305 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝(python) 摘要:1048: [编程入门]自定义函数之字符串拷贝 从索引`m-1`开始切片即可 ~~~pythjon input() s = input() m = int(input()) print…… 题解列表 2024年10月24日 0 点赞 0 评论 216 浏览 评分:0.0
编写题解 1048: [编程入门]自定义函数之字符串拷贝(java代码) 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2024年09月19日 1 点赞 0 评论 312 浏览 评分:9.9
[编程入门]自定义函数之字符串拷贝 题解 摘要: ```c #include #include void fun(char str[],int n,int m){ for(int i=n-1;i…… 题解列表 2024年08月03日 0 点赞 0 评论 461 浏览 评分:0.0
1048: [编程入门]自定义函数之字符串拷贝 摘要:```cpp #include using namespace std; char str[100]; int kb(int n,int m){ for(int i=m-1;istr[i]…… 题解列表 2024年07月24日 0 点赞 0 评论 181 浏览 评分:0.0
还有比这还简单的吗??? 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin>>n; …… 题解列表 2024年07月17日 0 点赞 0 评论 231 浏览 评分:0.0