Español
Abrir en Telegram

Publicaciónimport java.io.*;

8 de octubre de 2025
D
Deloitte | COGNIZANT | IBM | CAPGEMINI
import java.io.*; class SolutionClass { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] parts = br.readLine().trim().split("\\s+"); long l = Long.parseLong(parts[0]); long x = Long.parseLong(parts[1]); if (x == 0 || l < x) { System.out.println(0); return; } int m = (int)(l / x); long ans = solve(m); System.out.println(ans); } private static long solve(int n) { int[] x = new int[n + 1]; for (int i = 0; i <= n; i++) x[i] = i; for (int p = 2; p <= n; p++) { if (x[p] == p) { for (int k = p; k <= n; k += p) { x[k] -= x[k] / p; } } } long sum = 0; for (int i = 1; i <= n; i++) sum += x[i]; return sum; } } //Adam and GCD✅
1.3K ·

Cerca en el feed

DDeloitte | COGNIZANT | IBM | CAPGEMINIUBER EXAM✅✅✅ Contact : @MLCODER2DDeloitte | COGNIZANT | IBM | CAPGEMINICapgemini✅✅ contact : @MLCODER2
este mensaje
DDeloitte | COGNIZANT | IBM | CAPGEMINIimport java.util.*; import java.io.*; class SolutionClass { private static final class FastScanner { private final InputStream in; private final byte[] buffer =DDeloitte | COGNIZANT | IBM | CAPGEMINICAPGEMINI ON-CAMPUS EXAM DONE SUCCESSFULLY✅✅ CONTACT : @MLCODER2
DDeloitte | COGNIZANT | IBM | CAPGEMINIDeloitte | COGNIZANT | IBM | CAPGEMINI@python_java_Coding · canal · Tecnología
7 178suscriptores451alcance medio por publicación
Feed de la comunidad Abrir en Telegram

Un feed público abierto del índice de búsqueda ChatCrawler — el “Google del Telegram público”; se actualiza a medida que se rastrea la comunidad. Las horas se muestran en UTC.

Solo contenido público, API oficial de Telegram. Acerca de · Preguntas frecuentes · Límites del índice · Eliminar una página · Catálogo · Búsqueda · Cómo contamos