A
#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
int l=s.length();
if(s[0]<'A'||s[0]>'Z'){
cout<<"No"<<endl;
return 0;
}
else{
for(int i=1;i<l;i++){
if(s[i]<'a'||s[i]>'z'){
cout<<"No"<<endl;
return 0;
}
}
}
cout<<"Yes"<<endl;
return 0;
}
B
#include<bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
int l=s.length();
map<char,int> mp;
for(int i=0;i<l;i++){
mp[s[i]]++;
}
int max=1;
char ans=s[0];
for(auto i:mp){
if(i.second>max){
max=i.second;
ans=i.first;
}
}
cout<<ans<<endl;
return 0;
}
C
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
ll n;
cin>>n;
ll q[n];
ll a[n];
ll b[n];
for(ll i=0;i<n;i++){
cin>>q[i];
}
for(ll i=0;i<n;i++){
cin>>a[i];
}
for(ll i=0;i<n;i++){
cin>>b[i];
}
ll maxs1=1e18;
for(ll i=0;i<n;i++){
if(a[i]!=0){
if(q[i]/a[i]<maxs1)maxs1=q[i]/a[i];
}
}
for(ll i=0;i<n;i++){
q[i]-=a[i]*maxs1;
}
ll maxs2=1e18;
for(ll i=0;i<n;i++){
if(b[i]!=0){
if(q[i]/b[i]<maxs2)maxs2=q[i]/b[i];
}
}
/* for(ll i=0;i<n;i++){
q[i]-=b[i]*maxs2;
}*/
ll maxs=maxs1+maxs2;
for(ll i=1;i<=maxs1;i++){
for(ll j=0;j<n;j++){
q[j]+=a[j];
}
ll maxb=1e18;
for(int j=0;j<n;j++){
if(b[j]!=0){
if(q[j]/b[j]<maxb)maxb=q[j]/b[j];
}
}
if(maxs1-i+maxb>maxs){
maxs=maxs1-i+maxb;
}
}
cout<<maxs<<endl;
return 0;
}