
思维
文章平均质量分 76
indiewar
擅长各种乱搞
展开
-
Educational Codeforces Round 47 (Rated for Div. 2) B.Minimum Ternary String(思维)
B. Minimum Ternary Stringtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a ternary string (it is a string which consists only of char...原创 2018-07-15 19:20:03 · 221 阅读 · 0 评论 -
Codeforces Round #449 (Div. 2) C. Nephren gives a riddle
C. Nephren gives a riddle time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output What are you doing at the end of the world? Are you busy? Will ...原创 2018-07-30 10:14:03 · 153 阅读 · 0 评论 -
牛客 Wannafly挑战赛24 A石子游戏(思维)
题目链接 链接:https://www.nowcoder.com/acm/contest/186/A 来源:牛客网Alice和Bob在玩游戏,他们面前有n堆石子,对于这些石子他们可以轮流进行一些操作,不能进行下去的人则输掉这局游戏。 可以进行两种操作: 1. 把石子数为奇数的一堆石子分为两堆正整数个石子 2. 把两堆石子数为偶数的石子合并为一堆 两人都足够聪明,会按照最优策略操作。...原创 2018-09-14 22:46:55 · 592 阅读 · 0 评论 -
HDU 6461 hzy 和zsl 的生存挑战
一眼题,可惜在公交车上不好码代码。。。考虑一种策略,a猜和自己数相同的数,b猜和自己数不同的数。比如a的数字是0,a猜00,这时候其实答案只可能是00和01假如b的数字是1,b猜10,b正确假如b的数字是0,b猜01,a正确#include<bits/stdc++.h>using namespace std;int main(){ cout << "1....原创 2019-03-17 10:35:29 · 485 阅读 · 2 评论