码迷,mamicode.com
首页 >  
搜索关键字:stones    ( 236个结果
Jewels and Stones
题目描述: 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
G - And Then There Was One (约瑟夫环)
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
AtCoder - 3939 Strange Nim
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
C - Stones on the Table
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
【leetcode】lower_bound
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
2018山东省ACM省赛 G题Games
时间限制: 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
leetcode-771-Jewels and Stones(建立哈希表,降低时间复杂度)
题目描述: 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
2018山东省ACM省赛G题-Game
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
cf965d Single-use Stones
"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
Atcoder 2335 Frequency 题解
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
236条   上一页 1 ... 8 9 10 11 12 ... 24 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!