03. House Party
Здравейте, как се решава тая задача?някой може ли да помогни,
1.House Party
Write a program that keeps track of a guests that are going to a house party. On the first input line you are going to receive how many commands you are going to have. On the next lines you are going to receive some of the following inputs:
"{name} is going!"
"{name} is not going!"
If you receive the first type of input, you have to add the person if he/she is not in the list (If he/she is in the list print on the console: "{name} is already in the list!"). If you receive the second type of input, you have to remove the person if he/she is in the list (if not print: "{name} is not in the list!"). At the end print each guest on a new line.
Examples
Input |
Output |
4 Allie is going! George is going! John is not going! George is not going!
|
John is not in the list! Allie |
5 Tom is going! Annie is going! Tom is going! Garry is going! Jerry is going! |
Tom is already in the list! Tom Annie Garry Jerry |
благодаря
04.Array Advanced Operations
Shift right 1
Shift left 2
в тая задача всичко но това не мога да направя незнам как, можеш ли да ми помогнеш?благодаря
Сигурно мога, но дай кода до където си стигнала, не ми се пише цялата задача от нула.