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