原创 What Is Your Grade?

水題,理解好題意,多注意細節就行。直接貼代碼#include<stdio.h> #include<string.h> struct node {   int n;   char time[20];   int score;   int cu

原创 今年暑假不AC

解題思路:對每一個節目,按結束時間升序排序,如果結束時間相等,則按開始時間降序排序;先觀看較快結束的節目,留下更多的時間觀看其他節目。疑難點:結構體排序、貪心算法。#include<stdio.h> #include<stdlib.h> s

原创 What Is Your Grade?

水題,理解好題意,多注意細節就行。直接貼代碼#include<stdio.h> #include<string.h> struct node {   int n;   char time[20];   int score;   int cu