| //https://www.acmicpc.net/problem/10886 #include <iostream> |
| using namespace std; |
| int main() |
| { |
| bool x; |
| int N; |
| cin >> N; |
| int cnt=0; |
| for(int i=0; i<N; i++) |
| { |
| cin >> x; |
| if(x) cnt++; |
| else //x==0 |
| cnt--; |
| } |
| if(cnt>0) cout << "Junhee is cute!"; |
| else cout << "Junhee is not cute!"; |
| } |
'알고리즘 문제 풀이 > 1DP_과제(~180615)' 카테고리의 다른 글
| 171225_12790_Mini Fantasy War (0) | 2017.12.25 |
|---|---|
| 171224_1789_수들의 합 (0) | 2017.12.24 |
| 171224_10798_세로읽기 (0) | 2017.12.24 |
| 171224_5565_영수증 (0) | 2017.12.24 |
| 171224_5543_상근날드 (0) | 2017.12.24 |