码迷,mamicode.com
首页 >  
搜索关键字:hdu 1518 square    ( 32957个结果
数学-高精度
1.Integer Inquiry 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1047 解法:一道求大数之和,我们利用java里的BigInteger就可以轻松的解决,不过需要注意下格式的问题,每输出一个就要空一行,最后一个不用 代码: impor ...
分类:其他好文   时间:2020-06-21 18:09:00    阅读次数:62
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
0279. Perfect Squares (M)
Perfect Squares (M) 题目 Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Exa ...
分类:其他好文   时间:2020-06-21 09:19:56    阅读次数:46
HDU4283 You Are the One
题目:You Are the One 网址:http://acm.hdu.edu.cn/showproblem.php?pid=4283 Problem Description The TV shows such as You Are the One has been very popular. I ...
分类:其他好文   时间:2020-06-20 23:47:01    阅读次数:57
2020 HDU校赛 Problem J
##题面 Problem Description 给定一个n行m列的网格地图,从上到下依次编号为第1行到第n行,从左往右依次编号为第1列到第m列。每个格子要么可以通行(用"."表示),要么不可通行(用"#"表示)。 玩家P现在位于某个可以通行的格子上,小地图显示出了玩家所在位置周围3×3=9个格子。 ...
分类:其他好文   时间:2020-06-20 22:23:49    阅读次数:73
2020 HDU校赛 Problem I
##题面 Problem Description 在计算机中,对于定点数有三种不同的表示方法。在本题中,假定码的长度固定为8位,从左往右依次编号为第1到8位,第1位为最高位。 x的原码:最高位为符号位,正数符号位为0,负数符号位为1,第2到7位为x的二进制表示。正负0的原码不同。 x的反码:原码符号 ...
分类:其他好文   时间:2020-06-20 22:18:58    阅读次数:63
20条书写CSS代码
01、谨慎使用外边距属性与其它的属性不同,垂直方向上的外边距相遇时将会发生折叠。这意味着如果一个元素的下边距遇到了另一个元素的上边距,那么二者中较大的一个将被留下。下面是一个简单的例子。 <div class="square red"></div> <div class="square blue"> ...
分类:Web程序   时间:2020-06-20 14:18:52    阅读次数:71
HDU 2553 N皇后 (dfs+回溯)
##题面 Problem Description 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。 你的任务是,对于给定的N,求出有多少种合法的放置方法。 Input 共有若干行,每行一个正整数N≤10,表示棋盘和 ...
分类:其他好文   时间:2020-06-19 23:18:56    阅读次数:45
Codeforces Global Round 8 D. AND, OR and square sum(位运算)
题目链接:https://codeforces.com/contest/1368/problem/D 题意 给出一个大小为 $n$ 的数组 $a$,每次可以选两个下标不同的元素,一个赋为二者相与的值,同时一个赋为二者相或的值,计算 $\sum_{i=1}^n a_i^2$ 的最大值。 题解 即重新分 ...
分类:其他好文   时间:2020-06-19 10:37:59    阅读次数:66
HDU 1548 A strange lift (暴力搜索)
#题面 Problem Description There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 ? Ki ? N) on every floor. ...
分类:其他好文   时间:2020-06-18 19:21:32    阅读次数:90
32957条   上一页 1 ... 19 20 21 22 23 ... 3296 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!