向前走莫回头❤
摘要: 1:求平均年龄#includeusing namespace std;int main(){ int n; scanf("%d",&n); int ans=0; for(int i=1;iusing namespace std;double d[10]={28.9,3... 阅读全文
posted @ 2016-10-20 22:00 lris0-0 阅读(150) 评论(0) 推荐(0)
摘要: 1:短信计费#include#include#includeusing namespace std;int n;int main(){ int i; int t=0; scanf("%d",&n); for(i=1;i0) t++; } printf("%.1lf\... 阅读全文
posted @ 2016-10-20 21:55 lris0-0 阅读(128) 评论(0) 推荐(0)
摘要: 01:鸡尾酒疗法#include#include#includeusing namespace std;const double eps=0.05;int n,x,y;int main(){ scanf("%d%d%d",&n,&x,&y); double p=(do... 阅读全文
posted @ 2016-10-20 21:52 lris0-0 阅读(105) 评论(0) 推荐(0)
摘要: 1:找和为K的两个元素#include#include#includeusing namespace std;int a[1010],n,k;int main(){ int i,j; scanf("%d%d",&n,&k); for(i=1;i#include#inc... 阅读全文
posted @ 2016-10-20 21:45 lris0-0 阅读(114) 评论(0) 推荐(0)
摘要: 1:数组逆序重放#include#include#includeusing namespace std;int a[110],n;int main(){ int i; scanf("%d",&n); for(i=1;i0;--i) printf("%d ",a[i])... 阅读全文
posted @ 2016-10-20 21:39 lris0-0 阅读(94) 评论(0) 推荐(0)
摘要: 1:统计字符数#include#includeusing namespace std;char ch[1010];int num[150],n,len;int main(){ int i; scanf("%d",&n); while(n--) { getchar... 阅读全文
posted @ 2016-10-20 21:32 lris0-0 阅读(97) 评论(0) 推荐(0)
摘要: DP大法(之POJ): [1]POJ 动态规划题目列表 http://cippus.dlut.edu.cn/forum/posts/list/45.page容易: 1018,1050, 1083, 1088, 1125, 1143, 1157, 1163, 11... 阅读全文
posted @ 2016-10-20 21:25 lris0-0 阅读(121) 评论(0) 推荐(0)
摘要: Communication SystemTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 27509 Accepted: 9795DescriptionWe have received an order... 阅读全文
posted @ 2016-10-20 21:21 lris0-0 阅读(70) 评论(0) 推荐(0)
摘要: 1520 回文字符串 时间限制: 1 s 空间限制: 64000 KB 题目等级 : 黄金 Gold题目描述 Description 所谓回文字符串,就是一个字符串,从左到右读和从右到左读是完全一样的,比如:aba kllkllk tyyt 都是。 ... 阅读全文
posted @ 2016-10-20 14:47 lris0-0 阅读(72) 评论(0) 推荐(0)
摘要: 1:单词替换#include#include#includeusing namespace std;char s[110],s1[110],s2[110];int len,l1,l2;int main(){ //freopen("int.txt","w",stdout... 阅读全文
posted @ 2016-10-20 10:44 lris0-0 阅读(104) 评论(0) 推荐(0)
摘要: 1:单词翻转#include#include#include#includeusing namespace std;char s[510];int len;int main(){ int i,last=0; gets(s); len=strlen(s); fo... 阅读全文
posted @ 2016-10-20 10:41 lris0-0 阅读(117) 评论(0) 推荐(0)
摘要: 1:数组逆序重放#include#include#includeusing namespace std;int a[110],n;int main(){ int i; scanf("%d",&n); for(i=1;i0;--i) printf("%d ",a[i])... 阅读全文
posted @ 2016-10-20 10:37 lris0-0 阅读(148) 评论(0) 推荐(0)
摘要: 1:括号匹配问题#include#include#includeusing namespace std;char s[110];int len,d[110],t;bool p[110];int main(){ while((scanf("%s",s+1))==1) ... 阅读全文
posted @ 2016-10-20 10:32 lris0-0 阅读(164) 评论(0) 推荐(0)
摘要: 1:全排列#include#include#includeusing namespace std;char ch[10];int len,a[10];bool p[10];void dfs(int t){ if(t>len) { for(int i=1;i#in... 阅读全文
posted @ 2016-10-20 10:28 lris0-0 阅读(88) 评论(0) 推荐(0)
摘要: #include#include#include#includeusing namespace std;string s1,s2;int main(){ int i,len; cin>>s1; len=s1.length(); for (i=1... 阅读全文
posted @ 2016-10-20 10:25 lris0-0 阅读(93) 评论(0) 推荐(0)
过去的终会化为美满的财富~o( =∩ω∩= )m