-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRECENTCONT.cpp
More file actions
31 lines (26 loc) · 1.1 KB
/
RECENTCONT.cpp
File metadata and controls
31 lines (26 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*CodeChef recently revamped its practice page to make it easier for users to identify the next problems they should solve by introducing some new features:
Recent Contest Problems - Contains only problems from the last 2 contests
Separate Un-Attempted, Attempted, and All tabs
Problem Difficulty Rating - The Recommended dropdown menu has various difficulty ranges so that you can attempt the problems most suited to your experience
Popular Topics and Tags
Chef has been participating regularly in rated contests but missed the last two contests due to his college exams. He now wants to solve them and so he visits the practice page to view these problems.
Given a list of
�
N contest codes, where each contest code is either START38 or LTIME108, help Chef count how many problems were featured in each of the contests.*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;cin>>t;while(t--)
{
int n,a=0,b=0;cin>>n;
string st;
while(n--)
{
cin>>st;
if(st.at(0)=='S') a++;
else b++;
}
cout<<a<<" "<<b<<endl;
}
}