摘要:
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 阅读全文
摘要:
A.little w and Soda 题目描述 不知道你听没听说过这样一个脑筋急转弯。 2元可以买一瓶汽水(玻璃瓶装的),因为瓶身是玻璃瓶的比较贵,所以两个瓶身可以换一瓶汽水。你现在有4元钱,问最多能喝到多少瓶汽水? 答案是4瓶。一开始先用4元钱买两瓶汽水喝掉,再用这两瓶的汽水的瓶身换一瓶喝到,最 阅读全文
摘要:
Description In order to strengthen the defense ability, many stars in galaxy allied together and built many bidirectional tunnels to exchange messages 阅读全文
摘要:
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( 阅读全文
摘要:
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 阅读全文