5-Topshiriq On programming contests each team consists of three people and has a name. Write a program that for a team name and surnames of the participants, the full name of the team builds



Download 154,69 Kb.
bet1/2
Sana23.07.2022
Hajmi154,69 Kb.
#844422
  1   2
Bog'liq
2-tajriba ishi


942-20 Guruh Talabasi:Ro’zimatov Bahrmjon.


5-Topshiriq
On programming contests each team consists of three people and has a name. Write a program that for a team name and surnames of the participants, the full name of the team builds.
Full name of the team consists of a short list of team names and the names of its members. Names of the participants in the list must be sorted alphabetically and separated by exactly one comma and space and must be brackets on both side(see examples).
Input
 The Input contains exactly 4 lines. The first line contains the name of team. Each of the following three lines contains the surname of one of the teammates. The Lengths of the lines do not exceed 50 symbols.
Output
Output must contain exactly one line, containing full team name.
Samples



Input

Output

1

Team#6
Yusupova
Yuldoshova
Jumaboeva

Team#6(Jumaboeva, Yuldoshova, Yusupova)

2

TUIT Urgench Branch#4
Odilov
Xusinov
Axmedov

TUIT Urgench Branch#4(Axmedov, Odilov,Xusinov)

#include
using namespace std;
int main()
{
string s;
getline(cin, s);

Download 154,69 Kb.

Do'stlaringiz bilan baham:
  1   2




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish