Problem G: C语言习题 医生值班
生活随笔
收集整理的這篇文章主要介紹了
Problem G: C语言习题 医生值班
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Problem G: C語言習題 醫(yī)生值班
Time Limit: 3 Sec??Memory Limit: 128 MBSubmit: 847??Solved: 102
[Submit][Status][Web Board]
Description
醫(yī)院內(nèi)科有A,B,C,D,E,F,G,H共七位醫(yī)生,每人在一周內(nèi)要值一次夜班,排班的要求是:
(1) A醫(yī)生值班日比C醫(yī)生晚1天
(2) D醫(yī)生值班日比E醫(yī)生晚2天
(3) B醫(yī)生值班日比G醫(yī)生早3天
(4) F醫(yī)生的值班日在B醫(yī)生和C醫(yī)生的值班日之間,且是星期四
請編寫程序,輸出每位醫(yī)生的值班日。值班日以Sunday, Monday ,Tuesday, Wednesday, Thursday, Friday, Saturday分別表示星期日到星期六。
Input
無
Output
每位醫(yī)生的值班日
Sample Input
Sample Output
you guess!HINT
用枚舉變量。
輸出提示:
Doctor A is on duty Sunday.
Doctor B is on duty??????????? .
Doctor C is on duty??????????? .
Doctor D is on duty??????????? .
Doctor E is on duty??????????? .
Doctor F is on duty??????????? .
Doctor G is on duty??????????? .??? (別忘了每一行最后的點呦)
總結(jié)
以上是生活随笔為你收集整理的Problem G: C语言习题 医生值班的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IndexedDB_Web 离线数据库
- 下一篇: 斐波那契的整除