luyencode / comments

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

#c++ai chua hieu lam hay gi do co the tham khao minh nha #875

Open vanbaodepzai opened 1 year ago

vanbaodepzai commented 1 year ago

include<bits/stdc++.h>

using namespace std; long long n,a[1001]; int main() { cin>>n; for(int i=1;i<=n;i++) { cin>>a[i]; } for(int i=1;i<=n;i++) { if(iii==a[i]) cout<<"YES"<<endl; else cout<<"NO"<<endl; } }