
Codeforces
尒轩窗
这个作者很懒,什么都没留下…
展开
-
2016 ACM/ICPC大连区域赛 C—Game of Taking Stones【ava大数+威佐夫博弈】
http://acm.hdu.edu.cn/contests/contest_showproblem.php?pid=1003&cid=736 石头游戏 时间限制:2000/1000 MS(Java / Others)内存限制:65536/65536 K(Java / Others)总投稿数:542已接受提交内容:80 问题描述 两个人面对两堆石头进行比赛。他们轮流拿石头。作为...原创 2018-10-03 20:08:46 · 364 阅读 · 0 评论 -
E. Construct the Binary Tree
E. Construct the Binary Tree You are given two integersnnanddd. You need to construct a rooted binary tree consisting ofnnvertices with ...原创 2020-03-02 11:57:22 · 498 阅读 · 1 评论 -
B. Journey Planning
B. Journey Planning time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Tanya wants to go on a journey across the cities of Berland. ...原创 2020-03-02 10:34:24 · 368 阅读 · 0 评论 -
D. Olya and magical square【Codeforces】【思维】
题目链接 题意: 给你一个n,k,表示有一个(2^n)*(2^n)的正方形,你必须进行k次划分,每次将一个边长大于1的正方形画个十字分成相同的四个小正方形。划分完之后你要从最左下角的小正方形往上走到头,再往右走到右上角,途中必须只能经过大小相同且相邻的正方形。问你是否存在。如果存在,输出YES,并且输出你走的路径上log2(正方形的边长),否则输出NO。 分析: a[i]代表将正方形全部分...原创 2018-11-25 17:21:56 · 298 阅读 · 0 评论 -
C. Masha and two friends【Codeforces 】【细节】
题目链接 题意: 给你一个棋盘(如题目所示)黑白相间,q次询问,每次询问给你一个n*m的黑白相间棋盘,再给你两个矩形的左下角和右上角的端点,第一个矩形把相应位置涂成白色,第二个矩形把相应位置涂成黑色,求有多少个黑色格子和白色格子。 分析: 处理细节就行,很麻烦 代码: #include<bits/stdc++.h> #define ll long long #define...原创 2018-11-24 21:14:40 · 562 阅读 · 0 评论