2 solutions

  • 1
    @ 2025-3-23 13:32:35
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	string s;
    	int n,k;
    	cin>>s>>n>>k;
    	cout<<s.substr(n,k);
    	return 0;
    }
    

    Information

    ID
    99
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    33
    Accepted
    22
    Uploaded By