英文翻译17

news/2024/10/24 1:54:16/

OpenJudge - 17:The Largest City Nearby

描述

There are N cities, the length of edges between cities is given. Please find the city with the largest index id satisfying that there exisits a path between city 1 and city id and the length of this path is no more than K.

输入

First line: two positive integers N (N <= 100) and K (K <= 10000).
Next N lines: the i-th line contains N non-negative integers (<= 100) indicating the length of edge between city i and other cities.

输出

One integer id.

翻译:

有N个城市,并且城市之间的距离已知。找到一个下标最大的城市使得满足城市1和它之间的距离不超过K。

输入

第一行:两个正整数N和K

接下来的N行:

第i行包括N个非负数分别表示第i个城市到其他城市的距离。

输出:

一个数


http://www.ppmy.cn/news/765314.html

相关文章

英文翻译7

OpenJudge - 07:Shortest Path 描述 There is a graph with N nodes. Given the length of each edge between the nodes. Find the shortest path from S to E. 输入 First line: three positive integer number N (N < 100), S (S < N), E(E < N). Next N lines…

1.21英文题面翻译

描述 Acm, a treasure-explorer, is exploring again. This time he is in a special maze, in which there are some doors (at most 5 doors, represented by A, B, C, D, E respectively). In order to find the treasure, Acm may need to open doors. However, to open a…

英文翻译26

OpenJudge - 31:Candies 描述 There are N bags. Each bag has some candies. You can take some of the bags. the total number of candies in these bags should be a multiple of K because you want to divide the candies equally between K friends. How many candies…

专利常用语英文翻译

专利翻译词汇手册 是否将当前网页翻译成中文 网 页 翻 译 中英对照 关闭 专利轩 1月10日 小伙伴们经手海外专利申请的案子时&#xff0c;经常遇到翻译术语难题&#xff0c;翻译软件往往不能给出贴切的专业翻译&#xff0c;有很 多新手甚至得阅读大量…

腾讯翻译君在线翻译怎么翻译整个文件_7款好用的英文翻译软件推荐

如今&#xff0c;不管是工作还是学习&#xff0c;很多时候我们都要接触英文&#xff0c;可能是为了使用一款小众的软件&#xff0c;也可能是一篇好文章&#xff0c;也可能是一部视频&#xff0c;所以手里常备一些好用的翻译软件是很有必要的&#xff0c;在本文中来和大家推荐一…

中文如何翻译成英文?手机中英文一键翻译超简单

今天跟大家分享的主题是——如何将中文翻译成英文&#xff0c;中英文一键翻译的简单方法。 我们都知道&#xff0c;中文翻译成英文或将中英文进行互译&#xff0c;前提条件都是英文要好&#xff0c;但语言学习是一件很需要耐心和时间的事&#xff0c;在学习的过程中&#xff0c…

英文翻译15

OpenJudge - 15:Sum is K 描述 Given a sequence of N numbers. Find different numbers A and B in the sequence so that the sum of A and B equals to K. 输入 First line: two positive integers N (N < 1000) and K (K < 1000000). Second line: N positive in…

英文翻译自然数

题目编号 &#xff1a;Exp04-Enhance03&#xff0c;freshman-1006 题目名称&#xff1a;英文翻译自然数 题目描述&#xff1a;按常规英文输出1000以内自然数的英文读法。 输入&#xff1a;每个测试输入包含 1 个测试用例&#xff0c;给出正整数 n&#xff08;0< n <…