Submission #3562630
Source Code Expand
#include<stdio.h> int main(){ char s[13]; scanf("%s",s); int i=0; while(s[i]!=0){ if(i=0){ if(s[0]<'A'){ s[0]=s[0]+32; } }else { if(s[i]>='A')s[i]-=32; } printf("%c",s[i]); } puts(""); return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 名前の確認 |
User | mnrskym0227 |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 215 Byte |
Status | OLE |
Exec Time | 1362 ms |
Memory | 131200 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:5:1: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",s); ^
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 | OLE | 1212 ms | 131200 KB |
sample_02.txt | OLE | 1213 ms | 131200 KB |
test_AzielehadfJD.txt | OLE | 1214 ms | 131200 KB |
test_Oq.txt | OLE | 1214 ms | 131200 KB |
test_P.txt | OLE | 1214 ms | 131200 KB |
test_Wi.txt | OLE | 1219 ms | 131200 KB |
test_ZNEFzealEAkD.txt | OLE | 1213 ms | 131200 KB |
test_aAZaz.txt | OLE | 1362 ms | 131200 KB |
test_z.txt | OLE | 1215 ms | 131200 KB |
test_zDkElDjNVmAq.txt | OLE | 1213 ms | 131200 KB |