码迷,mamicode.com
首页 >  
搜索关键字:stones    ( 236个结果
[亚麻社招OA]Merge Files by Pairs
这个题有两个版本 Merge Music Files 组装零件 类似: https://leetcode.com/problems/minimum-cost-to-merge-stones/description/ 1. 有一串正整数,非排序的。先挑两个数字加起来,把这个和记下来,比如说s1。再在剩 ...
分类:其他好文   时间:2019-06-15 09:35:04    阅读次数:97
CF1110E Magic Stones
"CF1110E Magic Stones" 给定长度为 $n$ 的两个数组 $c,\ t$ 一次操作可以选择 $1 能否做若干次操作使得 $c_i=t_i(1\leq i\leq n)$ $1 using namespace std; const int maxn = 2e5 + 10; int ...
分类:其他好文   时间:2019-06-06 19:36:44    阅读次数:87
3-292. Nim Game
题目描述: You are playing the following Nim Game with your friend: There is a heap(堆) of stones on the table, each time one of you take turns to remove 1 ...
分类:其他好文   时间:2019-05-25 09:54:40    阅读次数:104
ZOJ4118 Stones in the Bucket
水题 给出n个数 只能让某个数-1 或者 让某个数-1另一个数+1 使最后n个数都相等 问最少的操作数 AC代码: ...
分类:其他好文   时间:2019-05-20 22:49:04    阅读次数:140
第十届山东省ACM省赛题解
点击跳转 A - Calandar H - Stones in the Bucket L - Median ...
分类:其他好文   时间:2019-05-19 22:03:17    阅读次数:185
CF 599 div2 A - A pile of stones
题意: 给出n个+ - 操作符 求出结束的最小值(当然 过程中不能减到小于0) 求出遍历完成后的总的变化值 和遍历过程中的最小值 这个值就是最小的初始值(显然 题目可以转化为求最小初始值) #include<bits/stdc++.h> using namespace std; //input by ...
分类:其他好文   时间:2019-05-13 15:59:36    阅读次数:104
石油大训练 Little Sub and Johann (博弈SG打表找规律)
Little Sub and Johann 题目描述 Little Sub and Johann are good friends and they often play games together. Recently, they like playing with stones.They hav ...
分类:其他好文   时间:2019-05-04 22:31:27    阅读次数:200
【AtCoder】Tenka1 Programmer Contest 2019
Tenka1 Programmer Contest 2019 C Stones 题面大意:有一个01序列,改变一个位置上的值花费1,问变成没有0在1右边的序列花费最少多少 直接枚举前i个都变成0即可 E Polynomial Divisors 大意:给定多项式求多项式取所有整数值时都能被整除的质数 ...
分类:其他好文   时间:2019-04-24 16:04:40    阅读次数:119
codeforces433B
Kuriyama Mirai's Stones CodeForces - 433B 有n颗宝石,每个宝石都有自己的价值。 然后m次询问。问区间[i,j]的宝石的总值,或者问排序后的区间[i,j]的总值。 Input第一行输入一个n(1 <= n <=10^5),表示n个宝石 第二行n个数,v1,?v ...
分类:其他好文   时间:2019-04-02 21:08:43    阅读次数:150
LeetCode 292 Nim Game 解题报告
题目要求 You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ...
分类:其他好文   时间:2019-03-19 10:46:49    阅读次数:179
236条   上一页 1 ... 3 4 5 6 7 ... 24 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!