Computer Science, asked by progx, 9 months ago

You are required to maintain number of patients infected by corona per country. You are given data which needs to be updated as and when new data is received.

The input line has two parts
1) string: Country, EXIT is specify end of input.
3) int: count

At the end print count per country (sorted by country name). Following is the sample input and expected output.
Input:
China 10
USA 5
China -5
USA -5
China -5
USA 5
EXIT

Output:
China:0
USA:5

Answers

Answered by Anonymous
3

Medieval archaeology is the study of humankind through its material culture, specialising in the period of the European Middle Ages. At its broadest, the period stretches from the 5th to the 16th century and refers to post-Roman but pre-modern remains. The period covers the upheaval caused by the Fall of the Western Roman Empire and cultures such as the Vikings, the Saxons, and the Franks. Archaeologists often specialise in studying either the Early Middle Ages (Migration Period) or the High Middle Ages and Late Middle Ages, although many projects and professionals move across these chronological boundaries. The rich nature of the medieval written record has meant that archaeology has often been seen as the "handmaiden to history",[1] especially in the Late Middle Ages. Analysis of material culture may enrich or call into question written evidence from the medieval period and the two sources of evidence need to be used together. Medieval archaeology has examined the development of medieval settlements, particularly the development of medieval towns and castles. It has also contributed to understanding of the spread and development of Christian monasticism during the medieval period.

Similar questions