码迷,mamicode.com
首页 >  
搜索关键字:ural 1809    ( 1009个结果
URAL 1762 Search for a Hiding-Place(数学·模拟)
题意  你在一个n*m个白色正方形格子组成的矩形的某个顶点格子  你沿着45度角的方向走  到了边界就改变方向90度  每次经过一个格子都改变他原来的颜(白或灰)  求你走到另一个顶点格子时矩形中有多少格子是灰色的 这题可以用公式也可以直接模拟  模拟就是一直向右移n-1位 每次超过边界就可以把边界向右移m-1位  用cnt记录超过边界的次数 那么每次都会经过cnt个已经走过的格子 (每个格子最...
分类:其他好文   时间:2015-03-11 21:40:24    阅读次数:135
URAL 1711. Code Names (数学啊 )
URAL 1711. Code Names (数学啊 )...
分类:其他好文   时间:2015-03-11 17:10:07    阅读次数:152
URAL 1545. Hieroglyphs
1545. Hieroglyphs Time limit: 1.0 second Memory limit: 64 MB Vova is fond of anime. He is so enthusiastic about this art that he learned to communicate with his Japanese friends using the...
分类:其他好文   时间:2015-03-11 14:53:12    阅读次数:159
URAL 1607. Taxi
1607. Taxi Time limit: 0.5 second Memory limit: 64 MB Petr likes going by taxi. For him, it is not only the pleasure of a fast and comfortable ride, but also the opportunity to bargain wi...
分类:其他好文   时间:2015-03-11 14:52:32    阅读次数:118
URAL 1925. British Scientists Save the World
1925. British Scientists Save the World Time limit: 1.0 second Memory limit: 64 MB The world is in danger! Aliens threw a mysterious device to Earth n years ago. Every year an unknown sig...
分类:其他好文   时间:2015-03-11 08:13:32    阅读次数:201
Search for a Hiding-Place (URAL 1762)
题意:n*m的空白方格,从四个角落中的某一个进入,斜着45度角移动,所经过的方块涂成黑色,碰到墙壁转90度接着移动直到走到某一个角落出去,途中若遇到前面已经涂黑的方格要再次把它涂白。问最后出去后一共有多少方格是黑色的。 思路:首先n和m自减,再求出n和m自减后的最小公倍数a(当走出去的时候走的总步数=a+1),接下来就是求有多少方格重复走了。...
分类:其他好文   时间:2015-03-10 17:25:18    阅读次数:140
URAL 1493. One Step from Happiness
1493. One Step from Happiness Time limit: 1.0 second Memory limit: 64 MB Vova bought a ticket in a tram of the 13th route and counted the sums of the first three and the last three digits...
分类:移动开发   时间:2015-03-09 19:12:02    阅读次数:180
URAL 2023. Donald is a postman (预处理)
2023. Donald is a postman Time limit: 1.0 second Memory limit: 64 MB Donald Duck works as a postman for the Walt Disney Studios. He delivers children’s letters from all over the world to ...
分类:其他好文   时间:2015-03-09 12:55:23    阅读次数:172
URAL 1110. Power
1110. Power Time limit: 0.5 second Memory limit: 64 MB You are given the whole numbers N, M and Y. Write a program that will find all whole numbers X in the interval [0, M ? 1] such that ...
分类:其他好文   时间:2015-03-09 12:52:22    阅读次数:118
URAL 1327. Fuses
1327. Fuses Time limit: 1.0 second Memory limit: 64 MB "Janus Poluektovich (I don't remember anymore whether -A or -U) used the machine only once. He brought with him a small semitranspar...
分类:其他好文   时间:2015-03-09 11:01:21    阅读次数:205
1009条   上一页 1 ... 72 73 74 75 76 ... 101 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!