摘要: 题目链接: "The Chosen One" 比赛链接: "ICPC Asia Nanning 2017" 题意 $t$ 组样例,每组给出一个整数 $n(2\le n\le 10^{50})$,求不大于 $n$ 的最大的 $2$ 的整数次幂。 题解 高精度运算 中的 方法可以直接计算某个大数二进制表 阅读全文
posted @ 2019-08-15 20:58 wuli涛涛 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 大数运算之 Java BigInteger 的基本用法 在程序设计竞赛中会遇到高精度运算的问题,C++没有高精度运算,只能手动模拟人工运算,手动实现高精度,而 包中的 提供了高精度的基本运算,因此竞赛中常用 Java 解决高精度运算问题。 ~~当然如果比赛支持 就当我没说。~~ BigInteger 阅读全文
posted @ 2019-08-15 20:32 wuli涛涛 阅读(11266) 评论(0) 推荐(0) 编辑
摘要: 2019 杭电多校 5 1004 题目链接: "HDU 6627" 比赛链接: "2019 Multi University Training Contest 5" Problem Description You are given two integers $N,C$ and two intege 阅读全文
posted @ 2019-08-15 11:32 wuli涛涛 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 2019 杭电多校 8 1009 题目链接: "HDU 6665" 比赛链接: "2019 Multi University Training Contest 8" Problem Description Calabash is the servant of a landlord. The land 阅读全文
posted @ 2019-08-14 22:30 wuli涛涛 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 2019 杭电多校 8 1011 题目链接: "HDU 6667" 比赛链接: "2019 Multi University Training Contest 8" Problem Description Roundgod is a famous milk tea lover at Nanjing 阅读全文
posted @ 2019-08-14 22:16 wuli涛涛 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "POJ 1753" Problem Description Flip game is played on a rectangular 4x4 field with two sided pieces placed on each of its 16 squares. One side o 阅读全文
posted @ 2019-08-14 20:46 wuli涛涛 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "POJ 2251" Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or 阅读全文
posted @ 2019-08-14 20:45 wuli涛涛 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 题目链接: "HDU 2553" Problem Description 在 $N N$ 的方格棋盘放置了 $N$ 个皇后,使得它们不相互攻击(即任意 $2$ 个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成 $45$ 角的斜线上。 你的任务是,对于给定的 $N$,求出有多少种合法的放置方法 阅读全文
posted @ 2019-08-14 20:43 wuli涛涛 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 2019 杭电多校 5 1005 题目链接: "HDU 6628" 比赛链接: "2019 Multi University Training Contest 5" Problem Description A sequence of length $n$ is called a permutatio 阅读全文
posted @ 2019-08-14 20:15 wuli涛涛 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 2019 杭电多校 7 1011 题目链接: "HDU 6656" 比赛链接: "2019 Multi University Training Contest 7" Problem Description Cuber QQ always envies those Kejin players, who 阅读全文
posted @ 2019-08-14 00:00 wuli涛涛 阅读(560) 评论(2) 推荐(2) 编辑