3 solutions

  • -1
    @ 2026-5-2 10:24:08

    #include<bits/stdc++.h> using namespace std; const int N=1e2+10; char c[N]; int main() { cin.getline(c,N); int n=strlen(c); for(int i=0;i<=n;i++) { if(c[i]>='a'&&c[i]<='z') { c[i]=c[i]-'a'+'A'; } } cout<<c; return 0; }

    Information

    ID
    915
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    117
    Accepted
    57
    Uploaded By