Jeanny
寂兮,寥兮,独立不改,周行而不殆
摘要: P5661 公交换乘 关键点在于题中说每次坐车开始时间都不重合,而且45分钟票就过期。所以理论上来讲,盒子里最多也就有45张没过期的票。大量的票都是已经过期了的,没必要从头扫一遍数组,在大量过期的票中浪费宝贵的青春。 #include<cstdio> using namespace std; int 阅读全文
posted @ 2020-07-17 16:58 Jeanny 阅读(144) 评论(0) 推荐(0)
摘要: P1563 玩具谜题 #include<iostream> #include<cstdio> #include<cstring> using namespace std; struct node{int c;string st;}p[500005]; int n,m,dr,tp,k=1; int m 阅读全文
posted @ 2020-07-17 16:56 Jeanny 阅读(132) 评论(0) 推荐(0)
摘要: P3955 图书管理员 P3956 棋盘 #include<iostream> #include<cstdio> #include<cmath> #include<cstring> using namespace std; int m,n,a[105][105], ans = 0x3fffffff, 阅读全文
posted @ 2020-07-17 16:54 Jeanny 阅读(105) 评论(0) 推荐(0)