Jeanny
寂兮,寥兮,独立不改,周行而不殆
摘要: t1切圆 cut #include<cstdio> using namespace std; long long n; int main(){ freopen("cut.in","r",stdin); freopen("cut.out","w",stdout); scanf("%lld",&n); 阅读全文
posted @ 2020-07-23 15:55 Jeanny 阅读(120) 评论(0) 推荐(0)
摘要: t1扫雷 二维数组,方向数组 #include<cstdio> using namespace std; char c[105][105];int a[105][105],n,m; int dx[]={0,1,1,1,0,-1,-1,-1},dy[]={1,1,0,-1,-1,-1,0,1}; in 阅读全文
posted @ 2020-07-22 19:37 Jeanny 阅读(212) 评论(0) 推荐(0)
摘要: t1匹配 #include <bits/stdc++.h> using namespace std; int ans, sum, n; string s1, s2; int main(){ freopen("rotate.in", "r", stdin); freopen("rotate.out", 阅读全文
posted @ 2020-07-21 21:23 Jeanny 阅读(167) 评论(0) 推荐(0)
摘要: t1 循环 #include<cstdio> using namespace std; int x,a=1;bool v[105]; int main(){ freopen("number.in","r",stdin); freopen("number.out","w",stdout); scanf 阅读全文
posted @ 2020-07-21 18:23 Jeanny 阅读(147) 评论(0) 推荐(0)
摘要: t1学说话 #include<bits/stdc++.h> using namespace std; string str; int ans; int main() { // freopen("word.in","r",stdin); // freopen("word.out","w",stdout 阅读全文
posted @ 2020-07-21 10:10 Jeanny 阅读(149) 评论(0) 推荐(0)
摘要: 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)
摘要: 2016NOIP-J T2 回文日期 #include<cmath> #include<cstdio> #include<iostream> #include<algorithm> using namespace std; int a[13] = {0,31,28,31,30,31,30,31,31 阅读全文
posted @ 2020-07-16 19:49 Jeanny 阅读(118) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-07-15 11:22 Jeanny 阅读(53) 评论(0) 推荐(0)