#include<iostream>#include<cstring>using namespace std;int main(){ char stu_in[15],stu_out[15],stu[15]; char sign_in[10] = "23:59:59"; char sign_out[10] = "00:00:00"; char tmp_in[10],tmp_out[10]; int num,i; cin>>num; for(i=0; i<num; i++) { cin>>stu>& Read More
#include<iostream>using namespace std;const int INF_MIN = 0x80000000;bool isAllNeg(int a[], int n){ int i = 0; for(i=0; i<n; i++) if(a[i] >= 0) return false; return true;}int findMaxSubSeq(int a[],int n,int &b,int &e){ int max = INF_MIN; int i = 0; int t1 = a[0]; int t2 = a[0]; i Read More
#include<iostream>#include<vector>#include<queue>using namespace std;int main(){ int n,m,par_id,k,child_id,par[101],i,j; vector<int> v; queue<int> Q,Q_tmp; cin>>n>>m; for(i=1; i<=n; i++) par[i] = i; for(i=0; i<m; i++) { cin>>par_id; cin>>k; Read More