Submission #1938360


Source Code Expand

#include "bits/stdc++.h"

using namespace std;
using ll = long long;
using IP = pair<int, int>;

const ll linf = 1LL << 62;
const int inf = 99999999;
const int dx[4] = { 1,0,-1,0 };
const int sy[4] = { 0,1,0,-1 };

#define atcoder (int)1e9+7
#define Endl endl
#define mp make_pair
#define all(v) v.begin(),v.end()
#define pb push_back
#define pr(x) cout << x << endl
#define chmax(x,y) x = max(x,y)
#define chmin(x,y) x = min(x,y)
#define rep(i,n) for(int i= 0;i<n;i++)

ll gcd(ll a, ll b) {//最大公約数
	if (a%b == 0)return b;
	else gcd(b, a%b);
}

ll lcm(ll a, ll b) {//最小公倍数
	return (a / gcd(a, b))*b;
}

int main(){
	
	string s;
	cin >> s;

	if (s[0]<'A' || s[0] >'Z')s[0] = toupper(s[0]);

	for (int i = 1; i < s.length(); i++) {
		if (s[i] < 'a'||s[i] > 'z')s[i] =tolower(s[i]);
	}
	pr(s);

	return 0;
}

Submission Info

Submission Time
Task B - 名前の確認
User tkkt0001
Language C++14 (GCC 5.4.1)
Score 100
Code Size 867 Byte
Status AC
Exec Time 1 ms
Memory 256 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 10
Set Name Test Cases
All sample_01.txt, sample_02.txt, 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 1 ms 256 KB
sample_02.txt AC 1 ms 256 KB
test_AzielehadfJD.txt AC 1 ms 256 KB
test_Oq.txt AC 1 ms 256 KB
test_P.txt AC 1 ms 256 KB
test_Wi.txt AC 1 ms 256 KB
test_ZNEFzealEAkD.txt AC 1 ms 256 KB
test_aAZaz.txt AC 1 ms 256 KB
test_z.txt AC 1 ms 256 KB
test_zDkElDjNVmAq.txt AC 1 ms 256 KB