#include using namespace std; int main(void){ //input int N; cin >> N; int a[N]; for(int i=0;i> a[i]; } //calc int cnt=0; bool newFlg; for(int i=0;i