class Program
{
static void Main(string[] args)
{
安排();
int res = gcd(15, 30);
Console.WriteLine(res);//15
ArmstrongNumber();
Console.WriteLine();
string str = "xxxxx Yes 666 '''>><><";
myStatistics(str);
PerfectNumber();
}
/*
1.医院内科有A,B,C,D,E,F,G共七位医生,每人在一周内要值一次夜班,排班的要求是:
(1) A医生值班日比C医生晚1天
(2) D医生值班日比E医生晚2天
(3) B医生值班日比G医生早3天
(4) F医生的值班日在B医生和C医生的值班日之间,且是星期四
请编写程序,输出每位医生的值班日。值班日以Sunday, Monday ,Tuesday, Wednesday, Thurday, Friday, Saturday分别表示星期日到星期六。
*/
enum 值班表
{
Monday = 1, Tuesday = 2, Wednesday = 3, Thurday = 4, Friday = 5
, Saturday = 6, Sunday = 7
}
static void 安排()
{
int a, b, c, d, e, g;
int f = 4;
for (a = 1; a <= 7; a++)
{
for (b = 1; b <= 7; b++)
{
for (c = 1; c <= 7; c++)
{
for (d = 1; d <= 7; d++
C#完数 字符串判断 脑筋转弯 完数判断 水仙花数
最新推荐文章于 2022-09-06 00:04:32 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)