B.怕npy的牛牛-JAVA版 public int Maximumlength (String x) { int n=0,p=0,y=0; int index=0; int max=0; for (int i=0;i<x.length();i++) { if (x.charAt(i)=='n') n++; if (x.charAt(i)=='p') p++; if (x.charAt(i)=='y') y++; while(n&...