Português
Abrir no Telegram

Postimport java.util.*;

20 de fevereiro de 2025
D
Deloitte | COGNIZANT | IBM | CAPGEMINI
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int K = sc.nextInt(); int[] arr = new int[N]; for (int i = 0; i < N; i++) { arr[i] = sc.nextInt(); } double avg= 0; int sum = 0; for (int i = 0; i < K; i++) { sum += arr[i]; } avg = (double) sum / K; for (int i = K; i < N; i++) { sum = sum - arr[i - K] + arr[i]; double cur = (double) sum / K; if (cur > avg) { avg = cur; } } System.out.printf("%.2f\n", avg); sc.close(); } } #BIRLASOFT
930 ·

Por perto no feed

DDeloitte | COGNIZANT | IBM | CAPGEMINIAmazon exam ✅✅ Contact: @MLCODER2DDeloitte | COGNIZANT | IBM | CAPGEMINIBIRLASOFT CODING ✅✅✅ CONTACT: @MLCODER2
esta mensagem
DDeloitte | COGNIZANT | IBM | CAPGEMINIpublic class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n= sc.nextInt(); int x=sc.nextInt(); int[] arr=new int[n];DDeloitte | COGNIZANT | IBM | CAPGEMINICOGNIZANT EXAM CLEARED ✅✅✅ CONTACT: @MLCODER2
DDeloitte | COGNIZANT | IBM | CAPGEMINIDeloitte | COGNIZANT | IBM | CAPGEMINI@python_java_Coding · canal · Tecnologia
7 178inscritos451alcance médio dos posts
Feed da comunidade Abrir no Telegram

Um feed público aberto do índice de busca ChatCrawler — “o Google do Telegram público”; atualizado à medida que a comunidade é rastreada. Horários em UTC.

Somente conteúdo público, API oficial do Telegram. Sobre · Perguntas frequentes · Limites do índice · Remover uma página · Catálogo · Busca · Como calculamos