Submission #186920
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0;i<(int)(n);++i)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i)
#define ALL(c) (c).begin(), (c).end()
#define valid(y,x,h,w) (0<=y&&y<h&&0<=x&&x<w)
const int INF = 0x3f3f3f3f;
const double EPS = 1e-8;
const double PI = acos(-1);
typedef long long ll;
typedef pair<int,int> pii;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
template<class T>ostream&operator<<(ostream &o,const vector<T>&t){o<<'[';FOR(i,t){if(i!=t.begin())o<<',';o<<*i;}return o<<']';}
template<class S,class T>ostream&operator<<(ostream &o,const pair<S,T>&t){return o<<'('<<t.first<<','<<t.second<<')';}
template<class T>void output(T *a,int n){REP(i,n){if(i)cout<<',';cout<<a[i];}cout<<endl;}
template<class T>void output(T *a,int n,int m){REP(i,n)output(a[i],m);}
template<class T>void output(T t){if(t<0)t=-t,putchar(45);static int c[20];
int k=0;while(t)c[k++]=t%10,t/=10;for(k||(c[k++]=0);k;putchar(c[--k]^48));}
template<class T>bool input(T &t){int n=1,c;for(t=0;!isdigit(c=getchar())&&~c&&c-45;);
if(!~c)return 0;for(c-45&&(n=0,t=c^48);isdigit(c=getchar());t=10*t+c-48);t=n?-t:t;return 1;}
string ins() {string x;cin>>x;return x;}
int main() {
string s = ins();
FOR(it, s) *it = tolower(*it);
s[0] = toupper(s[0]);
cout << s << endl;
}
Submission Info
Submission Time |
|
Task |
B - 名前の確認 |
User |
sune2 |
Language |
C++ (G++ 4.6.4) |
Score |
100 |
Code Size |
1482 Byte |
Status |
AC |
Exec Time |
21 ms |
Memory |
928 KB |
Judge Result
Set Name |
All |
Score / Max Score |
100 / 100 |
Status |
|
Set Name |
Test Cases |
All |
test_AzielehadfJD.txt, test_Oq.txt, test_P.txt, test_Wi.txt, test_ZNEFzealEAkD.txt, test_aAZaz.txt, test_z.txt, test_zDkElDjNVmAq.txt |
Case Name |
Status |
Exec Time |
Memory |
sample_01.txt |
AC |
20 ms |
800 KB |
sample_02.txt |
AC |
20 ms |
928 KB |
test_AzielehadfJD.txt |
AC |
21 ms |
792 KB |
test_Oq.txt |
AC |
20 ms |
928 KB |
test_P.txt |
AC |
20 ms |
800 KB |
test_Wi.txt |
AC |
21 ms |
928 KB |
test_ZNEFzealEAkD.txt |
AC |
20 ms |
796 KB |
test_aAZaz.txt |
AC |
20 ms |
924 KB |
test_z.txt |
AC |
20 ms |
924 KB |
test_zDkElDjNVmAq.txt |
AC |
20 ms |
748 KB |