上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 56 下一页
摘要: Write a program which reads a sequence A of n elements and an integer M, and outputs "yes" if you can make M by adding elements in A, otherwise "no". 阅读全文
posted @ 2019-04-21 17:23 青衫客36 阅读(507) 评论(0) 推荐(0) 编辑
摘要: Search II You are given a sequence of n integers S and a sequence of different q integers T. Write a program which outputs C, the number of integers i 阅读全文
posted @ 2019-04-21 11:16 青衫客36 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Search I You are given a sequence of n integers S and a sequence of different q integers T. Write a program which outputs C, the number of integers in 阅读全文
posted @ 2019-04-21 11:07 青衫客36 阅读(375) 评论(0) 推荐(0) 编辑
摘要: Doubly Linked List Your task is to implement a double linked list. Write a program which performs the following operations: insert x: insert an elemen 阅读全文
posted @ 2019-04-21 10:52 青衫客36 阅读(340) 评论(0) 推荐(0) 编辑
摘要: There are n processes in a queue. Each process has namei and timei. The round-robin scheduling handles the processes in order. A round-robin scheduler 阅读全文
posted @ 2019-04-15 20:36 青衫客36 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Reverse Polish notation is a notation where every operator follows all of its operands. For example, an expression (1+2)*(5+4) in the conventional Pol 阅读全文
posted @ 2019-04-15 17:24 青衫客36 阅读(278) 评论(0) 推荐(0) 编辑
摘要: #include #include #define N 6 struct PCB { int pid; // 进程标识符 int rr; // 已运行时间 int time; // 进程要求运行时间 char state; // 进程的状态 struct PCB * next; // 链接指针 }; struct PCB pcb[N]; struct PCB *... 阅读全文
posted @ 2019-04-15 14:04 青衫客36 阅读(415) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #define N 10 typedef struct table { char name[8]; // 作业名 float in_well; // 进入输入井的时间 float begin_run; // 开始运行时间 float run_time; // 运行时间 float end_run; // 结束运行时间 ... 阅读全文
posted @ 2019-04-15 14:02 青衫客36 阅读(1038) 评论(0) 推荐(0) 编辑
摘要: Selection Sort Write a program of the Selection Sort algorithm which sorts a sequence A in ascending order. The algorithm should be based on the follo 阅读全文
posted @ 2019-04-13 18:56 青衫客36 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Bubble Sort Write a program of the Bubble Sort algorithm which sorts a sequence A in ascending order. The algorithm should be based on the following p 阅读全文
posted @ 2019-04-13 17:49 青衫客36 阅读(237) 评论(0) 推荐(0) 编辑
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 56 下一页