摘要: 立方数 题目描述 对于给定的正整数 $N$,求最大的正整数 $A$,使得存在正整数 $B$,满足 $A^3B=N$。 输入包含 $T$ 组数据,$1 \leq T \leq 10000$;$1 \leq N \leq 10^{18}$。 输入描述: 第一行数字 $T$ 表示数据组数。 接下来一行,$ 阅读全文
posted @ 2025-11-21 23:24 onlyblues 阅读(3) 评论(0) 推荐(0)
摘要: 这是一场豪赌 题目描述 小徐(上帝角色)准备了 $n$ 个盒子,其中恰有一个盒子里放着礼物,其余盒子都是空的。 小张和小樊轮流进行“猜盒子”游戏,小张先手,整个过程分为两部分,如下。 「选择阶段」:当前玩家从剩余的盒子中任选一个盒子: 若选中有礼物的盒子,则当前玩家获得礼物,游戏结束。 若选中空盒, 阅读全文
posted @ 2025-11-03 11:16 onlyblues 阅读(16) 评论(0) 推荐(0)
摘要: E - Hit and Away Problem Statement You are given a simple connected undirected graph $G$ with $N$ vertices and $M$ edges.The vertices and edges of $G$ 阅读全文
posted @ 2025-10-29 10:35 onlyblues 阅读(15) 评论(0) 推荐(0)
摘要: 求函数 题目描述 牛可乐有 $n$ 个一次函数,第 $i$ 个函数为 $f_i(x) = k_i \times x + b_i$。 牛可乐有 $m$ 次操作,每次操作为以下二者其一: $1$ $i$ $k$ $b$ 将 $f_i(x)$ 修改为 $f_i(x) = k \times x + b$。 阅读全文
posted @ 2025-10-23 21:29 onlyblues 阅读(10) 评论(0) 推荐(1)
摘要: F - Not Adjacent Problem Statement You are given a length-$N$ integer sequence $A=(A _ 1,A _ 2,\ldots,A _ N)$. There are $2 ^ N$ (not necessarily cont 阅读全文
posted @ 2025-10-18 23:30 onlyblues 阅读(23) 评论(0) 推荐(0)
摘要: F - Clearance Problem Statement AtCoder Inc.'s online shop currently handles $N$ products, and the stock of product $i$ is $A_i$ units remaining. Proc 阅读全文
posted @ 2025-10-05 23:15 onlyblues 阅读(44) 评论(0) 推荐(1)
摘要: E1. Prime Gaming (Easy Version) This is the easy version of the problem. The difference between the versions is that in this version, $m \le 2$. You c 阅读全文
posted @ 2025-09-17 18:51 onlyblues 阅读(29) 评论(0) 推荐(0)
摘要: D. A Cruel Segment's Thesis You are given $n$ segments on a number line. The $i$-th segment is represented as $[l_i, r_i]$. Initially, all the segment 阅读全文
posted @ 2025-09-13 20:56 onlyblues 阅读(23) 评论(0) 推荐(0)
摘要: Count Binary Palindromic Numbers You are given a non-negative integer n. A non-negative integer is called binary-palindromic if its binary representat 阅读全文
posted @ 2025-09-10 23:21 onlyblues 阅读(31) 评论(0) 推荐(0)
摘要: 牛牛的三角形 题目描述 从集合 $\{1, 2, \dots, n\}$ 中等概率地随机选取 $m$ 个不同的整数,使得在选出的这 $m$ 个数中,存在三个不同的数 $a, b, c$,满足以 $a, b, c$ 为边长可以构成一个非退化的三角形。 求解上述情况出现的概率。可以证明答案可以表示为一个 阅读全文
posted @ 2025-09-06 23:32 onlyblues 阅读(34) 评论(0) 推荐(0)
Web Analytics