Posts

Showing posts from June, 2022

Attribute Parser | HeakerRank Solution

Image
         Attribute Parser | HeakerRank Solution                                         C++ 20 #include   < cmath > #include   < cstdio > #include   < vector > #include   < iostream > #include   < algorithm > #include   < sstream > #include   < map > using   namespace  std; int  main()   {       int  n, q,i;      cin>>n>>q;      string temp;            vector<string> hrml;      vector<string> quer;      cin.ignore();       for (i= 0 ;i<n;i++)    {     getline(cin,temp);   ...

Basic Data types | HackerRank Solution...

                Basic data types Solution Input Format Input consists of the following space-separated values:  int ,  long ,  char ,  float , and  double , respectively. Output Format Print each element on a new line in the same order it was received as input. Note that the floating-point value should be correct up to 3 decimal places and the double to 9 decimal places. #include   < iostream > #include   < cstdio > #include   < iomanip > using   namespace  std; int  main() {      // Complete the code.      int  a;      long   int  ld;      char  ch;      float  f;      double  lf;     cin >> a;     cin >> ld;     cin...