Problem Solution

1 solutions

  • 0
    @ 2024-08-19 16:18:01

    Code(C++):

    #include<bits/stdc++.h>
    using namespace std;
    const long long M=3e5+10,MOD=1000000000;
    typedef long long ll;
    
    int main()
    {
        ios::sync_with_stdio(false);
        cin.tie(0);
        int t=1;
        cin>>t;
        while(t--){
         string s;
         cin>>s;
         cout<<s[0]<<"\n";
    
        }
    
    
       
       return 0;
     
    }
    
    
  • 1

Information

ID
1080
Difficulty
3
Category
Implementation | String_Processing , Ad_Hoc , Brute_Force Click to Show
Tags
# Submissions
22
Accepted
19
Accepted Ratio
86%
Uploaded By