Français
Ouvrir dans Telegram

Publicationimport java.util.*;

16 septembre 2025
D
Deloitte | COGNIZANT | IBM | CAPGEMINI
import java.util.*; class SolutionClass { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int K = sc.nextInt(); String s = sc.next(); Set<Integer>set= new HashSet<>(); for (int i = 0; i < K; i++) set.add(sc.nextInt()); StringBuilder sb = new StringBuilder(); int i = 0; while (i < n) { int j = i + 1; while (j < n && s.charAt(j) == s.charAt(i)) j++; int len = j - i; if (!set.contains(len)) { sb.append(s, i, j); } i = j; } System.out.println(sb.length() == 0 ? "ERROR" : sb.toString()); } } //consecutive characters✅ CAPGEMINI✅
961 ·

À proximité dans le fil

DDeloitte | COGNIZANT | IBM | CAPGEMINICPAGEMINI 1-PM OA HELP AVAILABLE✅✅ contact : @MLCODER2DDeloitte | COGNIZANT | IBM | CAPGEMINIclass SolutionClass { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String s = sc.nextLine().trim(); int k= 0; for (int i = 0; i <
ce message
DDeloitte | COGNIZANT | IBM | CAPGEMINIIBM CLEARED & GOT COMMUNICATION MAIL✅ Contact : @MLCODER2DDeloitte | COGNIZANT | IBM | CAPGEMINICAPGEMINI ON-CAMPUS EXAM✅✅ Contact : @MLCODER2
DDeloitte | COGNIZANT | IBM | CAPGEMINIDeloitte | COGNIZANT | IBM | CAPGEMINI@python_java_Coding · canal · Technologie
7 178abonnés451portée moyenne d'une publication
Fil de la communauté Ouvrir dans Telegram

Un fil public ouvert issu de l'index de recherche ChatCrawler — « le Google du Telegram public » ; actualisé à mesure que la communauté est explorée. Les heures sont en UTC.

Contenu public uniquement, API officielle de Telegram. À propos · FAQ · Limites de l'index · Retirer une page · Catalogue · Recherche · Comment nous comptons