luyencode / comments

Server lưu trữ bình luận trên Luyện Code
https://luyencode.net
6 stars 3 forks source link

https://oj.luyencode.net/problem/ABC042_B #635

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Iroha và chuỗi ký tự - Luyện Code Online

https://luyencode.net/problem/ABC042_B

huydh1900 commented 2 years ago

Ai chưa làm đc có thể tham khảo : Cho vào vector rồi sort là xong https://luyencode.net/status/a6bfbccfc70afc1d4a016ce57e698d63?problem=ABC042_B

ghost commented 2 years ago

Đây là lời giải của mình đã AC. Nếu bạn đã cố gắng mà chưa làm được thì có thể tham khảo lời giải của mình.

Xem code AC

``` #include #include #include #include int main() { int n, l; std::cin >> n >> l; std::vector v(n); for(auto &x : v) std::cin >> x; std::sort(v.begin(), v.end()); for(auto &x : v) std::cout << x; return 0; } ```