#2327567

Solution for ITP1_8_A: Toggling Cases by kuroneko1025

Source Code Status Test Cases
    Policy: public     Reviewed: 5    
00.00 sec    524 KB    30 lines     430 bytes    2017-05-20 03:03
#include<stdio.h>

int main(void)
{
    char str[1200] = {0} ;
    int i=0 ;

    fgets(str ,sizeof str ,stdin);

    for (i=0 ;i<1200 ;i++){

        if (str[i]>=64 && str[i]<=123){
            if (str[i]<=91 || str[i]>=96){

                if (str[i]<=90){
                    str[i]=str[i]+32;
                } else if (str[i]>=97) str[i]=str[i]-32;

            }
        }

    }

    printf("%s\n",str);

    return 0;
}



Compile Error Logs:
You are not authorized to see the message.

Status
Judge: 0/4 C CPU: 00.00 sec Memory: 524 KB Length: 430 B 2017-05-20 03:03 2017-05-20 03:03
Results for testcases
Case # Verdict CPU Time Memory In Out Case Name
Case #1: : Presentation Error 00.00 sec 524 KB
Case #2: - - -
Case #3: - - -
Case #4: - - -
< prev | / | next >  
 
Judge Input #  ( | ) Judge Output #  ( | )


Comments
 
 Under Construction.
 
Categories
 
 
Free Tags