题目描述: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in Sis a type of ...
分类:
其他好文 时间:
2018-07-26 21:12:22
阅读次数:
232
Description Let’s play a stone removing game. Initially, n stones are arranged on a circle and numbered 1, …, n clockwise (Figure 1). You are also giv ...
分类:
其他好文 时间:
2018-07-14 00:52:35
阅读次数:
184
Problem Statement Takahashi and Aoki are playing a stone-taking game. Initially, there are N piles of stones, and the i-th pile contains Ai stones and ...
分类:
其他好文 时间:
2018-06-30 20:53:37
阅读次数:
150
Problem description There are n stones on the table in a row, each of them can be red, green or blue. Count the minimum number of stones to take from ...
分类:
其他好文 时间:
2018-05-30 19:25:44
阅读次数:
175
int binary_search(const vector& stones,int val){ int sz=stones.size(); int l=0,r=sz-1; while(l>1; if(stones[mid]>=val){ r=mid-1; }else{ l=mid+1; ... ...
分类:
其他好文 时间:
2018-05-27 20:28:57
阅读次数:
145
时间限制: 2 Sec 内存限制: 128 MB 提交: 70 解决: 17 [提交][状态][讨论版][命题人:admin] 题目描述 Alice and Bob are playing a stone game. There are n piles of stones. In each turn ...
分类:
其他好文 时间:
2018-05-19 17:06:23
阅读次数:
185
题目描述: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type o ...
分类:
其他好文 时间:
2018-05-15 22:36:47
阅读次数:
175
Alice and Bob are playing a stone game. There are n piles of stones. In each turn, a player can remove some stones from a pile (the number must be pos ...
分类:
其他好文 时间:
2018-05-12 15:07:58
阅读次数:
645
"ref" cpp include include using namespace std; int a[100005], n, l, ans=0x3f3f3f3f; int main(){ cin n l; for(int i=1; i ...
分类:
其他好文 时间:
2018-05-01 23:44:38
阅读次数:
197
Problem Statement Snuke loves constructing integer sequences. There are N piles of stones, numbered 1 through N. The pile numbered i consists of ai st ...
分类:
其他好文 时间:
2018-04-28 01:30:11
阅读次数:
262