oj mrJudge
Toggle navigation
  • Login
    • Forget Password
      Login
User Image

Hello, Stranger

Guest
  • Analysis Mode
  • Problems
    • All Problems
    • Latest Problems
  • Join Us Now
  • Registration
  • Contact Us
  • Infomation
  • About
    • Terms of Use
    • Technical Specifications
    • Credits

stringsort Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

stringsort.html

String manipulation is something done very commonly with programming. In fact, some programming languages are designed to make string manipulation easier to perform. Perl, for example, is generally accepted as a good language to do string manipulation in.

In this problem, you will read in a string a separate the capitals from the lowercase letters.

Input

Input will contain a string on one line. You may assume the string will contain at most 1,000 characters.

Output

Output will be all the capital letters that appears in the input, in the order that they appear, followed by all the lowercase letters that appears in the input, also in the order that they appear in. You should ignore any other characters.

Sample Input 1

this is: Sample Input.

Sample Output 1

SIthisisamplenput

Tags

String Processing

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
110041s32MBAverage
2011s32MBAverage

Judge Compile Command

g++-8 ans.cpp -o stringsort -Wall -Wshadow -static -O2 -lm -m64 -s -w -std=gnu++17 -fmax-errors=512

Accepted Submissions

subIDUserTimeMax Time

Past Submissions

subIDUserTimeScore
mrJudge 09.05.20
Copyright © 2020 mrJudge. All rights reserved.