Love丶FFC's Blog
本题目给出的射击比赛的规则非常简单,谁打的弹洞距离靶心最近,谁就是冠军;谁差得最远,谁就是菜鸟。本题给出一系列弹洞的平面坐标(x,y),请你编写程序找出冠军和菜鸟。我们假设靶心在原点(0,0)。
输入在第一行中给出一个正整数 N(≤ 10 000)。随后 N 行,每行按下列格式给出:
ID x y
其中 ID
是运动员的编号(由 4 位数字组成);x
和 y
是其打出的弹洞的平面坐标(x
,y
),均为整数,且 0 ≤ |x
|, |y
| ≤ 100。题目保证每个运动员的编号不重复,且每人只打 1 枪。
输出冠军和菜鸟的编号,中间空 1 格。题目保证他们是唯一的。
3
0001 5 7
1020 -1 3
0233 0 -1
0233 0001
1.使用距离公式来衡量远近,由题目条件可知,最远距离为√(100^2+100^2)≈141,最近距离为0
2.将最远距离、最近距离分别设置为初始的冠军距离、菜鸟距离,并且逐步更新
3.比冠军距离小的就是当前的冠军,比菜鸟距离大的就是当前的菜鸟
NOP = int(input()) # 输入运动员人数 Champion, Rookie = 141, 0 # 将最远距离、最近距离分别设置为初始的冠军距离、菜鸟距离 ChampionID, RookieID = "", "" for i in range(NOP): ID, X, Y = input().split() Distance = (abs(int(X)) ** 2 + abs(int(Y)) ** 2) ** (1 / 2) # 距离公式,abs为求绝对值 if Distance <= Champion: ChampionID, Champion = ID, Distance if Distance >= Rookie: RookieID, Rookie = ID, Distance print(ChampionID, RookieID)
jordans for cheap
I just wanted to thank you for the fast service. or possibly they look great. I received them a day earlier than expected. such I will definitely continue to buy from this site. in any event I will recommend this site to my friends. Thanks!
jordans for cheap https://www.realcheapretrojordanshoes.com/
authentic cheap jordans
I just wanted to thank you for the fast service. or simply they look great. I received them a day earlier than expected. which include the I will definitely continue to buy from this site. either way I will recommend this site to my friends. Thanks!
authentic cheap jordans https://www.cheaprealjordan.com/
cheap retro jordans
I just wanted to thank you for the fast service. or even they look great. I received them a day earlier than expected. which includes I will definitely continue to buy from this site. blue jays I will recommend this site to my friends. Thanks!
cheap retro jordans https://www.realjordansretro.com/
cheap louis vuitton handbags
I just wanted to thank you for the fast service. also known as they look great. I received them a day earlier than expected. like I will definitely continue to buy from this site. you decide I will recommend this site to my friends. Thanks!
cheap louis vuitton handbags https://www.bestlouisvuittonoutlet.com/
louis vuitton outlet
I just wanted to thank you for the fast service. maybe they look great. I received them a day earlier than expected. choose to I will definitely continue to buy from this site. manner in which I will recommend this site to my friends. Thanks!
louis vuitton outlet https://www.cheapreallouisvuitton.com/
louis vuittons outlet
Read reviews and was a little hesitant since I had already inputted my order. and also but thank god, I had no issues. including received item in a timely matter, they are in new condition. in any event so happy I made the purchase. Will be definitely be purchasing again.
louis vuittons outlet https://www.louisvuittonsoutlet.com/
cheap jordan shoes
Read reviews and was a little hesitant since I had already inputted my order. possibly but thank god, I had no issues. love the received item in a timely matter, they are in new condition. in either case so happy I made the purchase. Will be definitely be purchasing again.
cheap jordan shoes https://www.realcheapjordan.com/
FoorryNox
Of course I took it without hesitation after reading so many great reviews cheapest cialis available Marco, USA 2022 04 30 03 53 38
https://maps.google.ge/url?q=https://www.topuggbootsoutlet.com/
|Sheer clothing can be sexy, but it is important that it is not too sheer. Wearing something that is too sheer, particularly in private areas, will make you look trashy more than it will make you look classy.
SamuelEcors
online cialis 20mg
JackLit
malegra 200 mg
Preliaf
Before and after IUI, you need to stop smoking and drinking alcohol because they negatively affect your general health and may cause abnormality in your child propecia hair com 20 E2 AD 90 20Viagra 20Vom 20Hausarzt 20Verschreiben 20Lassen 20 20Viagral viagra vom hausarzt verschreiben lassen Tunstall was so successful in his aim to create trouble that, in March 1942, the Germans transferred him to Colditz, where he was to spend the next three years refining his skills in the art of goon baiting
JosephKip
where to buy atenolol without a prescription
منتجات أنابيب HDPE
تركيبات مصنع إيليت بايب Elite Pipe تُظهر دقة أبعاد رائعة ويتم تصنيعها باستخدام مواد عالية الجودة ، مما يضمن أداءً وموثوقية طويلة الأمد.
SamuelEcors
cialis levitra
qeDsRlOcr
The classic early signs of MH include tachycardia, tachypnea if the patient is allowed to breathe spontaneously, and markedly increased carbon dioxide production related to the hypermetabolic state buy cialis 20mg suggest that it was not pregnant after this type of sexual behavior
Davidevelf
erectafil canada
SamuelEcors
buy propecia finasteride online
Williamjotly
buy atenolol without prescription
SueLit
prazosin 5 mg in india
JoeLit
buy tretinoin online nz
Williamjotly
triamterene online
CurtisHed
retin a cost canada
DarrylBox
prednisolone acetate
DavisIgnip
prednisolone 5mg tablets for sale
CurtisHed
prazosin 2 mg caps
Williamjotly
prednisolone without prescription
ZakLit
nolvadex 20 mg tablet price
JosephKip
buy cheap atarax online
Michaelsmopy
prazosin depression
SamuelEcors
60 mg cymbalta
JoeLit
triamterene 25 mg
ZakLit
canadianpharmacyworld
EyeLit
canada discount pharmacy
DarrylBox
dexamethasone 0.75 mg
JosephKip
nolvadex pill
DarrylBox
canadian pharmacy mall
SamuelEcors
lipitor 20 mg coupon
IvyLit
tamoxifen brand name
Michaelsmopy
online pharmacy without prescription
ZakLit
canadian pharmacy no prescription
SueLit
atarax for anxiety
Elwoodexcix
legit canadian pharmacy
Michaelsmopy
canadian pharmacy viagra 50 mg
Davidevelf
zithromax capsules 500mg
SueLit
20 lipitor
IvyLit
tretinoin 01
AshLit
paxil price uk
SueLit
atarax 100 mg
DavisIgnip
triamterene
Michaelsmopy
dexamethasone 4 mg tablet brand name
ZakLit
zithromax 250 for sale
IvyLit
where can you buy dexamethasone
DarrylBox
tadalafil daily 5mg
Elwoodexcix
buy azithromycin with no prescription
CurtisHed
atarax 10mg tablets price
SamuelEcors
buy baclofen europe
Elwoodexcix
prednisolone buy online uk
SamuelEcors
cialis generic australia
DavisIgnip
azithromycin in canada
Elwoodexcix
prednisolone 15 mg
Richardatone
baclofen tablet price in india
JackLit
prazosin 2.5 mg
Williamjotly
cheap lipitor
EyeLit
generic for cymbalta
IvyLit
atenolol tab 100 mg
SamuelEcors
prednisolone drug
Elwoodexcix
phenergan otc uk
ZakLit
nolvadex for sale in india
JosephKip
price of cymbalta australia
Michaelsmopy
prednisolone buy online
IvyLit
levaquin medicine
ZakLit
buying retin a online
ZakLit
levaquin 500mg
IvyLit
how to buy nolvadex online
ZakLit
dexamethasone 80 mg
IvyLit
dexamethasone 2 mg
SamuelEcors
atarax 25 mg price
MaryLit
how to get baclofen
MaryLit
buy cheap atarax online
MaryLit
triamterene 50 mg tablet
Elwoodexcix
cymbalta 30 mg
Michaelsmopy
atarax online
EyeLit
products with retin a
IvyLit
where can i buy atarax in uk
DavisIgnip
buy prazosin online
Davidevelf
90mg cymbalta
SueLit
atenolol 25 mg price
DarrylBox
atenolol tablets
SueLit
cheap baclofen
CurtisHed
atarax 10mg buy online
JoeLit
dexamethasone capsule
JackLit
3000mg robaxin
AshLit
strattera 400 mg
DarrylBox
atarax tablet price in india
Michaelsmopy
canadian pharmacy lipitor
Michaelsmopy
buy phenergan online
ZakLit
buy phenergan uk
Elwoodexcix
robaxin 500mg for dogs
SamuelEcors
plavix for sale online
AshLit
generic cephalexin online
SamuelEcors
propranolol inderal 10 mg tablets
JoeLit
price of generic synthroid
CurtisHed
how much is prednisone
DavisIgnip
buy augmentin 875 mg online
AshLit
buy fluconazole online
Michaelsmopy
over the counter propranolol
AshLit
where to purchase accutane
DavisIgnip
phenergan 25mg
MaryLit
synthroid 025 mg
DavisIgnip
buy azithromycin 500mg
EyeLit
accutane 40 mg
AshLit
buy doxycycline mexico
Elwoodexcix
amoxicillin medication cost
ZakLit
plaquenil 200mg price in india
SamuelEcors
diflucan prescription cost
Richardatone
online lisinopril
EyeLit
doxycycline pills online
DarrylBox
order celebrex online
Michaelsmopy
lisinopril 30 mg cost
JackLit
plaquenil tablets
EyeLit
buy synthroid online canada
EyeLit
azithromycin generic pharmacy
IvyLit
suhagra 100mg best price
Richardatone
buy generic synthroid online
Richardatone
strattera uk cost
Williamjotly
cheap diflucan
JackLit
lisinopril 40 mg tablets
SamuelEcors
lisinopril cost uk
CurtisHed
reddit canadian pharmacy
SamLit
diflucan one
SueLit
can you buy lisinopril over the counter
SamLit
diclofenac 25mg price
IvyLit
accutane in uk
Williamjotly
no prescription lisinopril
AlanLit
propranolol 80 mg er
Davidevelf
bactrim 160 mg
Davidevelf
inderal 60 mg
DarrylBox
amoxicillin 500mg capsules uk
SamLit
how to buy zithromax online
Michaelsmopy
augmentin 875 mg buy
SueLit
order synthroid from canada
SamuelEcors
prednisone 6 mg
Elwoodexcix
buy zanaflex 4mg online
SueLit
who sells difluican with out a prescription
Elwoodexcix
amoxicillin for sale in mexico
DarrylBox
zanaflex for back pain
DarrylBox
canadian pharmacy synthroid 100mcg
Elwoodexcix
synthroid 50mcg
DarrylBox
price of phenergan
AlanLit
buy suhagra 100
JoeLit
suhagra 100mg cheap
IvyLit
drug tizanidine 4mg
JosephKip
propranolol canada