码迷,mamicode.com
首页 >  
搜索关键字:codeforces 91b    ( 12211个结果
Codeforces Round #652 (Div. 2) A. FashionabLee(几何)
题目链接:https://codeforces.com/contest/1369/problem/A 题意 判断正 $n$ 边形能否通过旋转使得一边与 $x$ 轴平行,一边与 $y$ 轴平行。 题解 符合条件的正 $n$ 边形一定可以像正方形一样被两个对称轴 $4$ 等分,即总的边数为 $4$ 的倍 ...
分类:其他好文   时间:2020-06-24 21:28:20    阅读次数:36
CodeForces -337A:Puzzles(水)
The end of the school year is near and Ms. Manana, the teacher, will soon have to say goodbye to a yet another class. She decided to prepare a goodbye ...
分类:其他好文   时间:2020-06-23 21:45:00    阅读次数:111
Codeforces Round #651 (Div. 2) C. Number Game(数论)
题目链接:https://codeforces.com/contest/1370/problem/C 题意 给出一个正整数 $n$,Ashishgup 和 FastestFinger 依次选择执行以下一个操作: 如果 $n > 1$,使 $n$ 除以一个奇因子 如果 $n > 1$,使 $n$ 减一 ...
分类:其他好文   时间:2020-06-21 19:40:19    阅读次数:44
【Codeforces Round #639 (Div. 2) A】Puzzle Pieces
题目链接 点我呀 翻译 给你一个拼图, 问你能不能把它拼成一个 \(n \times m\) 的方格图。 题解 会发现, 只有 $2 \times 2$ 的能拼出来, 或者是一个长条形的。 往下或者往右一直延伸这样, 然后宽度或高度为1。 代码 #include<bits/stdc++.h> #de ...
分类:其他好文   时间:2020-06-21 19:26:05    阅读次数:45
Codeforces Round #651 (Div. 2) D. Odd-Even Subsequence(二分)
题目链接:https://codeforces.com/contest/1370/problem/D 题意 给出一个含有 $n$ 个数的数组 $a$,从中选出 $k$ 个数组成子序列 $s$,使得 $min(max(s_1, s_3, s_5, \ldots), max(s_2, s_4, s_6, ...
分类:其他好文   时间:2020-06-21 19:25:33    阅读次数:85
Codeforces Round #651 (Div. 2) C. Number Game (博弈,数学)
题意:对于正整数$n$,每次可以选择使它变为$n-1$或者$n/t$ ($n\ mod\ t=0$且$t$为奇数),当$n=1$时便不可以再取,问先手赢还是后手赢. 题解:首先特判$1$和$2$的情况,然后显然如果$n$是奇数,一定是先手赢. ? 如果$n$是偶数,那么我们去找它的奇数因子. ? 如 ...
分类:其他好文   时间:2020-06-21 15:56:29    阅读次数:60
Codeforces Round #651 (Div. 2) E - Binary Subsequence Rotation 思维
#include<map> #include<queue> #include<time.h> #include<limits.h> #include<cmath> #include<ostream> #include<iterator> #include<set> #include<stack> # ...
分类:其他好文   时间:2020-06-21 14:20:23    阅读次数:58
Codeforces Global Round 8 E - Ski Accidents 拓扑
#include<map> #include<queue> #include<time.h> #include<limits.h> #include<cmath> #include<ostream> #include<iterator> #include<set> #include<stack> # ...
分类:其他好文   时间:2020-06-21 14:13:49    阅读次数:55
【Codeforces Round #639 (Div. 2) C】Hilbert's Hotel
题目链接 点我呀 翻译 一个旅馆内有无限多个房间, 每个房间里面都只有一个人住。 这些房间和所有的整数对应。 现在对于房间号为整数 \(k\) 的房间, 里面的人要移动到 \(k + a_{k\ mod\ n}\) 号房间。 给你 \(n\), 和整型数组 \(a\) , 问你移动之后, 是不是每个 ...
分类:其他好文   时间:2020-06-21 14:08:05    阅读次数:64
Codeforces Global Round 8 D - AND, OR and square sum 尽量往大的数字上移动
#include<map> #include<queue> #include<time.h> #include<limits.h> #include<cmath> #include<ostream> #include<iterator> #include<set> #include<stack> # ...
分类:移动开发   时间:2020-06-21 14:06:53    阅读次数:54
12211条   上一页 1 ... 35 36 37 38 39 ... 1222 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!