1 solutions

  • 1
    @ 2024-12-15 14:57:31
    #include<bits/stdc++.h>
    using namespace std;
    string toupper(string s)
    {
    	int n=s.size();
    	for(int i=0;i<n;i++)
    	{
    		if(s[i]>='a'&&s[i]<='z')
    		{
    			s[i]=s[i]-'a'+'A';
    		}
    	}
    	return s;
    }
    int main()
    {
    	string s;
    	cin>>s;
    	string str=toupper(s);
    	cout<<str;
    	return 0;
    }
    • 1

    Information

    ID
    934
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    26
    Accepted
    18
    Uploaded By