会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yyscn
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2020年11月
2020.10.30个人赛
摘要: d题:没做出来原因是没准确找到规律,原来只要机场号相等则免费,不相等时只需花一。 #include<bits/stdc++.h>#include<algorithm>#define ll long longusing namespace std;const ll nl=1e5+5;int main(
阅读全文
posted @ 2020-11-06 15:24 yyscn
阅读(78)
评论(0)
推荐(0)
2020年10月
关于set
摘要: 可以自动去重,使用insert插入,clear清空,定义:set<>x 查找: if(s.find(a[i][0])==s.end()&&s.find(a[i][1])==s.end()){ ok=1; break; }这种情况找不到。
阅读全文
posted @ 2020-10-30 09:21 yyscn
阅读(56)
评论(0)
推荐(0)
2020.10.23个人赛补题报告
摘要: b题:set真香 set可以自动去重,可以使用clear()一键清空,使用insert()插入元素,对于b题只需要遍历一遍,如果元素>='A'&&<='Z'记录一下set数组中元素个数,用来找到最大值,否则就继续插入元素。 #include<bits/stdc++.h> #define ll lon
阅读全文
posted @ 2020-10-30 09:17 yyscn
阅读(39)
评论(0)
推荐(0)
2020.10.16个人赛
摘要: D题: 判断多少个人可以和到喜欢的饮料,但饮料只能按对提供,可以先将偶数个的饮料分完,再将奇数个-1分完,最后剩余都是单数在统一分配。 #include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(f
阅读全文
posted @ 2020-10-25 15:38 yyscn
阅读(84)
评论(0)
推荐(0)
2020.10.17个人赛
摘要: 7-5 提议很好理解,只是代码一直不过,把#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);删掉就行了。 #include<bits/stdc++.h>#define ll long longusing names
阅读全文
posted @ 2020-10-25 15:11 yyscn
阅读(98)
评论(0)
推荐(0)
2020.10.10天梯赛补题
摘要: 总结:前两个小时不要看排名,先做自己一看就会的,每个题都要看一下,避免落题。 1题; 相当考验人的字符串水平。 #include<string>#include<iostream>#include<vector>#include<cstdio>using namespace std;int main
阅读全文
posted @ 2020-10-18 19:51 yyscn
阅读(93)
评论(0)
推荐(0)
2020.10.9个人赛补题
摘要: b题:b其实不难题意就是不让k个连续字符成为一个周期。这提给我的教训就是中文翻译应该结合英文题目一起看, #include<bits/stdc++.h>#include<algorithm>#define ll long longusing namespace std;const ll nl=1e5
阅读全文
posted @ 2020-10-18 19:25 yyscn
阅读(78)
评论(0)
推荐(0)
2020.10.2个人赛
摘要: c题: 首先判断a+c是否包含b中所用字母,在判断a是不是b的子字符串。 #include<bits/stdc++.h>#define ll long longusing namespace std;const ll nl=1e5+5;#define speed_up ios::sync_with_
阅读全文
posted @ 2020-10-11 15:56 yyscn
阅读(98)
评论(0)
推荐(0)
2020.10.3天梯赛补题
摘要: 本次比赛暴露了自身很多问题。 1 ,1题我忽略了数据的输入,在数据输入环节出了问题,即如果一个人输了输入终止。我还没有理解好题意,如果同输或同赢就谁都不喝酒。 #include<bits/stdc++.h>#include<algorithm>#define ll long longusing na
阅读全文
posted @ 2020-10-09 17:18 yyscn
阅读(133)
评论(0)
推荐(0)
2019山东省赛补题
摘要: A题 题解:A题注意看清题目每月三十天每周五天很关键,因为每月星期几是固定的。 #include<bits/stdc++.h>#define ll long longusing namespace std;const ll nl=1e5+5;ll a[nl]={0};ll b[nl]={0};ll
阅读全文
posted @ 2020-10-01 18:51 yyscn
阅读(142)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告