Given an array A of N integers, your task is to identify if there exis การแปล - Given an array A of N integers, your task is to identify if there exis อังกฤษ วิธีการพูด

Given an array A of N integers, you

Given an array A of N integers, your task is to identify if there exists a set of exactly
three elements A[i], A[j] and A[k] such that their summation equals to a given query
value. Moreover, i, j and k must be different. There will be multiple query values. For
each query, you have to identify if there exists such set.
Input
• The first line of input contains two integers N (1≤ N ≤ 600) and M (1≤ M ≤200)
representing the number of elements in the array and the number of queries.
• The second line contains N integers representing the value in the array A where
(−500,000,000≤ A[i]≤500,000,000) . The array A is already sorted.
• The third line contains M integers representing the queries. Let q be the query
value, (−500,000,000≤ q≤ 500,000,000)
Output
There must be exactly M lines. Each line contains a word “YES” or “NO” depends on
if there exists a pair of elements of A the sum of which equal to each query respectively.

0/5000
จาก: -
เป็น: -
ผลลัพธ์ (อังกฤษ) 1: [สำเนา]
คัดลอก!
Given an array A of N integers, your task is to identify if there exists a set of exactlythree elements A[i], A[j] and A[k] such that their summation equals to a given queryvalue. Moreover, i, j and k must be different. There will be multiple query values. Foreach query, you have to identify if there exists such set.Input• The first line of input contains two integers N (1≤ N ≤ 600) and M (1≤ M ≤200)representing the number of elements in the array and the number of queries.• The second line contains N integers representing the value in the array A where(−500,000,000≤ A[i]≤500,000,000) . The array A is already sorted.• The third line contains M integers representing the queries. Let q be the queryvalue, (−500,000,000≤ q≤ 500,000,000)OutputThere must be exactly M lines. Each line contains a word "YES" or "NO" depends onif there exists a pair of elements of A the sum of which equal to each query respectively.
การแปล กรุณารอสักครู่..
ผลลัพธ์ (อังกฤษ) 2:[สำเนา]
คัดลอก!
Given an array of N integers A, Task is to Identify if your there exists a SET of exactly
Three Elements A [I], A [J] and A [K] such that their summation equals to a Given Query
Value. Moreover, i, j and k must be different. There will be multiple query values. For
each Query, You have to Identify if there exists such SET.
Input
• The First line of input contains integers N Two (1≤ N ≤ 600) and M (M 1≤ ≤200)
representing the Number of Elements in the array and. Number of the queries.
• The Second line contains N integers representing the Value in the array where A
(-500,000,000≤ A [I] ≤500,000,000). The array A is already sorted.
• The third line contains M integers representing the queries. Let Q be the Query
Value, (-500,000,000≤ Q≤ 500,000,000)
Output
There must be exactly M Lines. Each line contains a Word "YES" or "NO" depends on
if there exists a pair of Elements of A Equal to the Sum of which each Query respectively.

การแปล กรุณารอสักครู่..
ผลลัพธ์ (อังกฤษ) 3:[สำเนา]
คัดลอก!
Given an array A of, N integers your task is to identify if there exists a set of exactly
three elements A [], [] I A J and. A [] such k that their summation equals to a given query
value. Moreover I, J and, K must be different. There will be multiple. Query values. For
each query you have, to identify if there exists such Input set.

.Education The first line of input contains two integers N (1 < = N < = 600) and M (1 < = M < = 200)
representing the number of elements in. The array and the number of queries.
- The second line contains N integers representing the value in the array A where
(− 500 000 000 < =,,, A [i] < =,, 500 000 000). The array A is already sorted.
- The third line contains M integers representing the queries. Let Q. Be the query
.Value, (− 500 000 000 < =,,,, Q < = 500 000 000)

There Output must be exactly M lines. Each line contains a word "YES." or "NO depends." On
if there exists a pair of elements of A the sum of which equal to each query respectively.

.
การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2025 I Love Translation. All reserved.

E-mail: