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/FH_18_11 #318

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Liệt kê từ in hoa - Luyện Code Online

https://luyencode.net/problem/FH_18_11

hieuguyen07012004 commented 3 years ago

Đây là code AC e viết bằng C++ nhưng e thấy hơi phức tạp, có ai có code C++ ngắn gọn hơn thì cho e xin với.

Xem code AC

```cpp #include using namespace std; bool upper (char c) { if (c>='A' && c<='Z') return true; return false; } int main() { string s; vector a; a.assign(1000,0); getline(cin,s); s+=' '; bool z=false; int dem=0, kt=0, j=0; for (int i=0; i