浩神的电脑

查看题解 查看答案
题目描述
Time Limit: 1000 ms
Memory Limit: 256 mb

请先登录再刷题,不会做的题目右上可以查看题解和答案~

输入输出格式
输入描述:
输入包括多组测试数据。
首先输入一个n,表示接下来有n个操作(1<=n<=100)
每个操作一共有下面三种形式:
1.Install Software_name
Install是前缀,Software_name是软件的名称,这种命令表示安装这个软件。
如果他本次安装的程序电脑里面没有,那么就安装并输出“The software has been installed!” ,如果电脑里已经安装了那么就不做任何反应,就是不输出任何东西。
2.Uninstall Software_name
同理,Uninstall是前缀,Software_name是软件的名称,这种命令表示卸载这个软件
如果他卸载的软件电脑里面有,那么就卸载并输出“The software has been uninstalled!”,如果电脑里面没有这个软件那么就输出“The software is not found!”。
3.Query
询问当前浩神的电脑状况
如果当前的电脑是安全的话输出“Your computer is secure!”,否则就输出“Your computer is not secure!”。
输出描述:
按照题目的意思输出
输入输出样例
输入样例#:
16
Install 360SAFE
Install 360SAFE
Install 360BROWSER
Install QQGUARD
Install 360SD
Install 360DESKTOP
Install 360YASUO
Install 360WD
Install 360SAFEBOX
Query
Uninstall 360SAFEBOX
Query
Install QQQQQQQQ
Query
Install 360SAFEBOX
Query
输出样例#:
复制
The software has been installed!
The software has been installed!
The software has been installed!
The software has been installed!
The software has been installed!
The software has been installed!
The software has been installed!
The software has been installed!
Your computer is secure!
The software has been uninstalled!
Your computer is not secure!
The software has been installed!
Your computer is not secure!
The software has been installed!
Your computer is secure!
提示
多组输入可以用while(scanf()!=EOF)的格式
重置

提交代码后在此处可查看状态