考试周破防

又快到期末了,LakerV想起他上个学期被考试周支配的恐惧。拼搏五日,我要上大二。成为了他的座右铭。在考试周里,周一到周五分别要考一科课程。所以LakerV会在当天早上预习这门课程,准备下午的考试。但作为一名算法竞赛选手,LakerV相信自己不需要预习数据结构和算法这门课程。所以他在那天早上可以待在宿舍打游戏。现在告诉你周一到周五的考试安排,以及周几,请你告诉他那天早上他在干啥。

周一到周五的考试安排:

周一:Higher mathematics

周二:Linear algebra

周三:Principle of computer composition

周四:Database system concept

周五:Data structures and algorithms (数据结构和算法)

输入描述:一个正整数,表示周几
输出描述:
如果LakerV在预习课程,输出You were studying x! (x表示课程名称)
否则输出You were playing games!
示例1
输入 1输出You were studying Higher mathematics!输入5 输出You were playing games!

#include<iostream>

using namespace std;

int main()

{

    int n;

     cin>>n;

    if(n==1)

        cout<<"You were studying Higher mathematics!"<<endl;

    else if(n==2)

        cout<<"You were studying Linear algebra!"<<endl;

    else if(n==3)

        cout<<"You were studying Principle of computer composition!"<<endl;

    else if(n==4)

        cout<<"You were studying Database system concept!"<<endl;

    else

        cout<<"You were playing games!"<<endl;

    return 0;

}


                
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值