Submission #187758
Source Code Expand
#include <stdio.h> void change(char *str){ int flg = 0; while(*str != '\0'){ if(flg == 0){ if(*str >= 'a' && *str <= 'z'){ *str -= 32; flg = 1; } }else if(flg ==1){ if(*str >= 'A' && *str <= 'Z'){ *str += 32; } } str++; } } int main(){ char str[15]; scanf("%s",str); change(str); printf("%s\n",str); return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 名前の確認 |
User | ferretdayo |
Language | C (GCC 4.6.4) |
Score | 0 |
Code Size | 476 Byte |
Status | WA |
Exec Time | 21 ms |
Memory | 804 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:23:10: warning: ignoring return value of ‘scanf’, 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 | AC | 19 ms | 712 KB |
sample_02.txt | AC | 19 ms | 804 KB |
test_AzielehadfJD.txt | WA | 20 ms | 796 KB |
test_Oq.txt | WA | 19 ms | 796 KB |
test_P.txt | AC | 19 ms | 800 KB |
test_Wi.txt | WA | 20 ms | 800 KB |
test_ZNEFzealEAkD.txt | WA | 20 ms | 704 KB |
test_aAZaz.txt | AC | 21 ms | 708 KB |
test_z.txt | AC | 20 ms | 796 KB |
test_zDkElDjNVmAq.txt | AC | 19 ms | 796 KB |