Submission #1567355
Source Code Expand
#include <iostream> #include <stdio.h> #include <string> #include <cstdlib> #include <cmath> #include <math.h> #include <vector> #include <algorithm> using namespace std; int main(){ string s; cin >> s; for(int i=0; i<s.length(); i++){ if(i==0){ if(isupper(s.at(i)) == 0){ printf("%c", s.at(i)-32); }else{ printf("%c", s.at(i)); } }else{ if(islower(s.at(i)) == 0){ printf("%c", s.at(i)+32); }else{ printf("%c", s.at(i)); } } } cout << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 名前の確認 |
User | nabla_delta |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 533 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
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 |