STR01 - Chuyển chuỗi về viết thường

View as PDF

Submit solution

Points: 1.00 (partial)
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type
Allowed languages
C, C#, C++, Go, Java, Pascal, Perl, PHP, Python, Ruby, Rust, Scratch, Swift

Cho một chuỗi ~str~ bao gồm các ký tự a-z, A-Z và khoảng trắng. Nhiệm vụ của bạn là viết chương trình chuyển chuỗi này về dạng viết thường.

Input

  • Một chuỗi ~str~ có độ dài không quá 1000

Output

  • Chuỗi ~str~ ở dạng viết thường

Sample

Input #1
Lap Trinh Khong Kho
Output #1
lap trinh khong kho

Comments

Please read the guidelines before commenting.



  • 0
    super_god  commented on Oct. 8, 2024, 2:51 a.m.

    hello ae


  • -1
    phinguyen18  commented on Aug. 5, 2024, 3:25 a.m.

    O(n) string s; getline(cin,s); for(int i = 0; i < s.size(); i ++){

    if(s[i] >= 65 && s[i] <= 90){
       s[i] += 32;  
    }
    

    } cout << s << "\n";


  • -3
    crotop  commented on April 24, 2024, 6:53 a.m.

    làm sao để nộp code c# vậy ạ


  • -3
    vqlong  commented on Aug. 3, 2023, 6:05 p.m.

    uầy, C compiler của web nhà mình không có strlwr(), nó báo warning: implicit declaration of function ‘strlwr’; did you mean ‘strlen’?


    • -2
      phamduy  commented on June 3, 2024, 8:26 a.m.

      yess , khong hieu lam