Trong Liên minh huyền thoại có N vị tướng, vị tướng thứ i có 2 sát thương vật lý và sát thương phép. Vị tướng thứ i được cho là mạnh hơn vị tướng thứ j nếu có sát thương vật lý mạnh hơn. Hai vị tướng có cùng sát thương vật lý thì vị tướng mạnh hơn sẽ có sát thương phép lớn hơn. Hãy cho biết chỉ số sát thương vật lý và phép của vị tướng mạnh thứ m. Input Dòng đầu chứa số n,m(1≤m≤n≤10000) n dòng, mỗi dòng chứa 2 số nguyên Ai( vật lý),Bi(phép)(0≤Ai,Bi≤10000). Output Chỉ số sát thương Input Copy 3 2 1 2 3 2 1 3 Output Copy 1 3

Các câu hỏi liên quan

2. Read the text and choose the correct answer. Advantages of mobile phones for students It's clear to all that mobile phones are really useful for students. students have a mobile phone, then itťs easy to contact anyone at their needs. For example, if a student has some problem in school or on the street after school, he can contact their parents immediately. So, the mobile phone is one of the best solutions for any emergency situations. And mobile phone also is a great equipment in order to improve knowledge and communicate with the world. Early morning it works as an alarm clock. Also, it works as reminder if you put some notes on reminder. You can take photos or listen to music anywhere you like. You can manage your spending or receiving money with the help or money management apps. You can use the mobile phone as your personal diary. For these reasons, each student should have a mobile phone. 1.The text is about_ A. advantages of mobile phones for students. B. disadvantages of mobile phones. C. students use mobile phone all day. 2. For emergency situation, students can A. take some photos. B. contact their parents immediately. C. take a taxi to home. 3. Mobile phone can work as in early morning. A. alarm clock. B. reminder C. money manager. 4. Should students use mobile phone? A. Mobile phone is very useful. B. Yes, they should C. No, they shouldn't. Read the text again and answer the questions. 1. What should students do when they have some problem in school or on street? 2. Is mobile phone great equipment for students to communicate with the world? 3. What can we do with money management apps? 4. Do you think that each student should have a mobile phone?