Submission #1153476
Source Code Expand
#define _USE_MATH_DEFINES #include<cstdio> #include <iostream> #include<algorithm> #include<string> #include<queue> #include<vector> #include<functional> #include<cmath> #include<map> #include<stack> #include<set> using namespace std; typedef long long ll; int main(void) { string str; cin >> str; for (int i = 1; i < str.size(); i++) { if (!(str[0] >= 'A' && str[0] <= 'Z')) str[0] = str[0] - 32; if (!(str[i] >= 'a' && str[i] <= 'z')) str[i] = str[i] + 32; } cout << str << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 名前の確認 |
User | jj |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 540 Byte |
Status | WA |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 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 | WA | 1 ms | 256 KB |
test_zDkElDjNVmAq.txt | AC | 1 ms | 256 KB |