cnt2同理。 publicstaticintminimumOperations(int n,int a[]){// Code Here.int cnt1=0,cnt2=0;int cnt3=0;for(int i=0;i<n;i++){if(a[i]%3==1){cnt1++;}elseif(a[i]%3==2){cnt2++;}else{cnt3++;}}// System.out.println(cnt1+" "+cnt2+" "+cnt3);// System.out.printl...
cnt2同理。 publicstaticintminimumOperations(int n,int a[]){// Code Here.int cnt1=0,cnt2=0;int cnt3=0;for(int i=0;i<n;i++){if(a[i]%3==1){cnt1++;}elseif(a[i]%3==2){cnt2++;}else{cnt3++;}}// System.out.println(cnt1+" "+cnt2+" "+cnt3);// System.out.printl...