We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3c5669 commit 618e2a4Copy full SHA for 618e2a4
1760B - Atilla's Favorite Problem.cpp
@@ -0,0 +1,28 @@
1
+// ॐ नमः शिवाय
2
+#include<bits/stdc++.h>
3
+using namespace std;
4
+#define ll long long
5
+
6
+// Code Written By: Vikash Patel
7
+// Codeforces Profile: https://codeforces.com/profile/vikashpatel
8
9
+int main()
10
+{
11
+ int t;
12
+ cin>>t;
13
+ while(t--)
14
+ {
15
+ int n;
16
+ cin>>n;
17
+ string s;
18
+ cin>>s;
19
+ char c='a';
20
+ for(int i=0;i<n;i++)
21
22
+ if(s[i]>c)
23
+ c = s[i];
24
+ }
25
+ cout<<abs(97-c)+1<<endl;
26
27
+ return 0;
28
+}
0 commit comments