2341: The war of 3Q.

内存限制:128 MB 时间限制:1.000 S
评测方式:文本比较 命题人:
提交:41 解决:7

题目描述

One day,China's Internet firm Tencent said it is shutting down its popular instant messaging service QQ on computers installed with anti-virus software run by the company's rival Qihoo360, as a war between the two software giants escalated over the course of the past several months.

输入

INPUT:

This problem has two parts.

Part #1:

The first line of Part #1 is an integer N(N<=100), which stands for the number of operations:

Then N lines follow, each line as an operation.

The operations should be described as :

Create File_name Ext_name

If there is a file called File_name,then output “File already exist!” and ignore this operation, else create that file.

Delete File_name

If there is a file called File_name,then remove it;else output ”No such file!” and ignore this operation.

QQ File_name

If the file called File_name does not exist, output”No such file!”; else if the Ext_name is”exe” then output ”QQ has not collected your private information!”, otherwise output ” QQ has collected your private information!”.

Part #2:

There is a list of softwares by Qihoo 360.

360SAFE

360BROWSER

QQGUARD

360SD

360DESKTOP

360YASUO

360WD

360SAFEBOX

The following line is an integer M(M<=100), which stands for the number of operations:

Then M lines follow, each line as an operation.

The operations should be described as:

Install Software_name

If the software called Software_name is installed, output “The software is already installed!” and ignore the operation; else install it.

Uninstall Software_name

If the software called Software_name does not exist, output “The software is not found!” and ignore the operation; else uninstall it.

360

If all the softwares in the list are installed in your computer, output “Your computer is secure!” else output “Your computer is not secure!”

输出

The output is specified before.

样例输入 复制

5
Create qq exe
Create search dat
QQ search
Delete qqmusic
Create qq exe
3
Install 360SAFE
Install 360SAFE
360

样例输出 复制

QQ has collected your private information!
No such file!
File already exist!
The software is already installed!
Your computer is not secure!

来源/分类