Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: 曹北健(37509)
- Result: AC Submission_id: 4161663
- Created at: Mon Mar 14 2022 15:33:02 GMT+0800 (China Standard Time)
- Problem: 5397 Time: 2 Memory: 1524
- */
- #include <stdio.h>
- int main()
- { char c;
- while((c=getchar())!=EOF)
- {
- if(c=='-')
- {c=getchar();
- putchar(c-32);
- }
- else if(c>='A'&&c<='Z'){putchar('-');putchar(c+32);}
- else{putchar(c);}}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment