//No.2297 Best Grouping #include int main(){ int N, M; scanf("%d %d", &N, &M); int A[M]; for(int i=0; i0; j--){ B[j] = B[j-1]; } B[0] = tmp; } printf("%d\n",B[0]); return 0; }