摘要: Day1 T1vigenere密码 题目链接 vijos截得不全导致题意可能会理解错,注意小写字母应该是先转大写进行变换,再根据情况看是否需要再转成小写。 然后,然后就没了啊。 1 #include<cstdio> 2 #include<cstring> 3 char ch[105],tt[1005 阅读全文
posted @ 2017-11-05 22:15 Child-Single 阅读(893) 评论(0) 推荐(0) 编辑
摘要: Day1 T1铺地毯 题目链接 O(n)扫一遍,嗯,没了。 1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 struct node{ 5 int x,y,px,py; 6 }e[10005]; 7 int read(){ 阅读全文
posted @ 2017-11-05 21:30 Child-Single 阅读(300) 评论(0) 推荐(0) 编辑
摘要: T1机器翻译 题目链接 直接上队列的模拟题,日常没题解。 1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 int m,n; 5 int read(){ 6 int ans=0,f=1;char c=getchar(); 7 阅读全文
posted @ 2017-11-05 20:45 Child-Single 阅读(271) 评论(0) 推荐(0) 编辑
摘要: T1潜伏者 题目链接 简单模拟题,没什么好讲的。 1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 char ch[102],yu[102],mi[102]; 5 int len1,len2,sum=0,len3,to[27 阅读全文
posted @ 2017-11-05 20:25 Child-Single 阅读(371) 评论(0) 推荐(0) 编辑
摘要: T1笨小猴 题目链接 开个桶统计,扫一遍记录min,max再O(sqrt(n))判合法就行了。 1 #include<cstdio> 2 #include<cmath> 3 #include<cstring> 4 #include<algorithm> 5 int ton[27],mni,mxa; 阅读全文
posted @ 2017-11-05 19:44 Child-Single 阅读(277) 评论(0) 推荐(0) 编辑
摘要: T1统计数字 题目链接 排个序扫一遍就没了吧...... 1 #include<cstdio> 2 #include<cstring> 3 #include<iostream> 4 #include<algorithm> 5 using namespace std; 6 int a[200005]; 阅读全文
posted @ 2017-11-05 19:22 Child-Single 阅读(253) 评论(0) 推荐(0) 编辑