上一页 1 2 3 4 5 6 7 8 ··· 50 下一页
摘要: 小白劝退赛。 A.勘测 题目描述 Actci偶然发现了一个矿洞,这个矿洞的结构类似与一棵二叉树,Actci发现的矿洞恰好位于根节点处,为了尽快挖掘,Actci找来了她的小伙伴们来帮忙,由于地质原因,每天小伙伴们只能打通到一条到子节点的道路(不消耗时间),也就是说每天一个节点只能向一个子节点建设道路, 阅读全文
posted @ 2018-12-23 01:08 霜雪千年 阅读(347) 评论(0) 推荐(0) 编辑
摘要: A.关电脑 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long LL; 4 int T,h1,m1,s1,h2,m2,s2,t1,t2,ans; 5 int main(){ 6 while(cin>>T){ 7 f 阅读全文
posted @ 2018-12-20 18:10 霜雪千年 阅读(434) 评论(0) 推荐(0) 编辑
摘要: A.little w and Soda 题目描述 不知道你听没听说过这样一个脑筋急转弯。 2元可以买一瓶汽水(玻璃瓶装的),因为瓶身是玻璃瓶的比较贵,所以两个瓶身可以换一瓶汽水。你现在有4元钱,问最多能喝到多少瓶汽水? 答案是4瓶。一开始先用4元钱买两瓶汽水喝掉,再用这两瓶的汽水的瓶身换一瓶喝到,最 阅读全文
posted @ 2018-12-17 12:57 霜雪千年 阅读(446) 评论(0) 推荐(0) 编辑
摘要: A.tokitsukaze and Counting 题目描述 给出3个整数L,R,x。tokitsukaze想知道,闭区间[L,R]中,x的倍数出现了几次。 输入描述: 第一行包括一个正整数T(T<=1000),表示T组数据。接下来T行,每行包括3个正整数L,R,x。1≤L≤R≤10^181≤x≤ 阅读全文
posted @ 2018-12-08 00:16 霜雪千年 阅读(323) 评论(0) 推荐(0) 编辑
摘要: Description In order to strengthen the defense ability, many stars in galaxy allied together and built many bidirectional tunnels to exchange messages 阅读全文
posted @ 2018-12-06 23:28 霜雪千年 阅读(246) 评论(0) 推荐(0) 编辑
摘要: A.小乐乐的组合数+:根据等差数列来暴力枚举起点即可。 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long LL; 4 int n,m,a[]={0,6,5,4,3,2,1};LL cnt; 5 int main( 阅读全文
posted @ 2018-12-05 23:37 霜雪千年 阅读(261) 评论(0) 推荐(0) 编辑
摘要: A.小乐乐学走路 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long LL; 4 int n;int x; 5 int main(){ 6 while(cin>>n){ 7 getchar(); 8 while(n 阅读全文
posted @ 2018-12-05 23:11 霜雪千年 阅读(290) 评论(0) 推荐(0) 编辑
摘要: X章求和 X章求和 Time Limit: 2000/1000ms (Java/Others) Time Limit: 2000/1000ms (Java/Others) Problem Description: X章最喜欢求和了,他一看到什么鬼就什么鬼都加起来。one day,他得到了2个数a,b 阅读全文
posted @ 2018-11-30 23:55 霜雪千年 阅读(297) 评论(0) 推荐(0) 编辑
摘要: Problem Description: 扫雷这个游戏想必各位都是会玩的吧。简单说一下规则,n行m列的格子地图上有分布一些雷。起先每个格子 都是未点开的状态,我们依次点开格子,找出所有雷。有如下3条规则: 1.点开的地方如果相邻的格子(上、下、左、右,左上、左下、右上、右下)有雷,该格子显示一个数字 阅读全文
posted @ 2018-11-30 23:51 霜雪千年 阅读(748) 评论(0) 推荐(0) 编辑
摘要: Description Sereja has a bracket sequence s1, s2, ..., sn, or, in other words, a string s of length n, consisting of characters "(" and ")". Sereja ne 阅读全文
posted @ 2018-11-30 23:47 霜雪千年 阅读(406) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 50 下一页