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...
As soon as we walked into the main area of the museum,we saw thousands of beautiful butterflies,all flapping (拍打) their colorful wings.My girls were jumping up and down,and knew we had made the right(3) decision to come to the museum.They were having so much fun. ...
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...