Submission #187302
Source Code Expand
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <ctype.h> #include <iostream> #include <vector> #include <string> #include <algorithm> #include <map> using namespace std; int main(){ char s[100]; scanf("%s",s); toupper(s[0]); for(int i=1;i<strlen(s);i++)tolower(s[i]); printf("%s\n",s); return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 名前の確認 |
User | rikku |
Language | C++ (G++ 4.6.4) |
Score | 0 |
Code Size | 386 Byte |
Status | WA |
Exec Time | 21 ms |
Memory | 928 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:17:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 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 | WA | 20 ms | 800 KB |
sample_02.txt | AC | 20 ms | 800 KB |
test_AzielehadfJD.txt | WA | 20 ms | 676 KB |
test_Oq.txt | AC | 21 ms | 792 KB |
test_P.txt | AC | 21 ms | 792 KB |
test_Wi.txt | AC | 21 ms | 924 KB |
test_ZNEFzealEAkD.txt | WA | 20 ms | 804 KB |
test_aAZaz.txt | WA | 21 ms | 804 KB |
test_z.txt | WA | 21 ms | 928 KB |
test_zDkElDjNVmAq.txt | WA | 20 ms | 920 KB |