updated at 2022. 12. 27. 오전 8:48:42
This commit is contained in:
@@ -6,11 +6,11 @@ class Solution {
|
||||
boolean answer = true;
|
||||
Arrays.sort(pb);
|
||||
for(int a = 0; a < pb.length; a++){
|
||||
for(int b = a+1; b < a+2; b++){
|
||||
for(int b = a+1; b < a+pb.length; b++){
|
||||
if(pb[b%pb.length].replaceAll(pb[a],"s").matches("^s.+")){
|
||||
answer = false;
|
||||
break;
|
||||
}
|
||||
} else break;
|
||||
}
|
||||
if(answer == false){
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user