Beginner Free Contest 48 - ISTRI
View as PDF
Submit solution
Points:
0.20 (partial)
Time limit:
1.0s
Memory limit:
512M
Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch
Comments
solve
bài này cứ sort lại rồi kiểm tra 2 số đầu với số cuối là ngon
đầu tư vào hdvi là ngon luôn
ae nào xài vòng lặp là gay (trừ inp), tôi chỉ cần O(1), ae nào ko tin thì cứ test thử ý tưởng dưới
code vector: sort(a.begin(), a.end()); if(a[0] + a[1] <= a[n-1]) cout << "CO"; else cout << "KHONG";
ai cs long tu bi cho xin upvote
GỢI Ý