简体中文
Telegram

讨论串 消息 #1153

4 条消息 · –
  1. K
    import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int row = sc.nextInt(); int col = sc.nextInt(); int[][] matrix = new int[row][col]; for (int i = 0; i < row; i++) { for (int j = 0; j < col; j++) { matrix[i][j] = sc.nextInt(); } } int val = sc.nextInt(); int count = 0; for (int i = 0; i < row; i++) { label: for (int j = 0; j < col; j++) { int product = 1; for (int k = 0; k <= i; k++) { for (int l = 0; l <= j; l++) { product *= matrix[k][l]; if (product > val) continue label; } } count++; } } System.out.println(count); } }

来自搜索索引的公开信息流 ChatCrawler ——“公开 Telegram 的 Google”;随着该社群被抓取而更新。 时间为 UTC。

仅限公开内容,使用 Telegram 官方 API。 关于 · 常见问题 · 索引限制 · 移除页面 · 目录 · 搜索 · 计算方法