摘要:
#include<iostream>#include<algorithm>using namespace std;struct Meet{ int beg; int end; int num;}meet[1000]; class setMeet{public: void init(); void s 阅读全文
摘要:
问题描述:一个有限时间中尽可能多的开很多会议。每个会议有开始时间和结束时间。设计出一种算法,得出在已知的各个会议中选出会议,使在这段时间中开的会议最多。 数据结构:结构体: struct Meet{ int number; int begin; int end;}; 代码: #include<ios 阅读全文
摘要:
Problem Description In this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n. Input The input will consist of a series of integers n, o 阅读全文