码迷,mamicode.com
首页 >  
搜索关键字:round    ( 15566个结果
Codeforces Round #201 (Div. 2) C 数论
Problem: 给你n(n<=100)n(n y)x, y(x > y),可以观察到连续执行操作,可以生成的数的集合是 {k?gcd(x,y) | k=1,2,..且 k?gcd(x,y)<=y}\...
分类:其他好文   时间:2016-05-12 14:10:09    阅读次数:113
Codeforces Round #332 (Div. 2) D. Spongebob and Squares
Spongebob is already tired trying to reason his weird actions and calculations, so he simply asked you to find all pairs of n and m, such that there are exactly x distinct squares in the table consis...
分类:其他好文   时间:2016-05-12 12:24:59    阅读次数:204
Codeforces Round #350 (Div. 2) F. Restore a Number 模拟构造题
F. Restore a Number Vasya decided to pass a very large integer n to Kate. First, he wrote that number as a string, then he appended to the right integ ...
分类:其他好文   时间:2016-05-11 21:45:25    阅读次数:192
mysql 将指定列的浮点数转化为整数
mysql 将指定列的浮点数转化为整数: update A set B = cast(B as decimal(10,0)) -- 或者 update A set B = round(B,0) 例如:update hdcloude01.t_a01_eltable set t_a01_eltable. ...
分类:数据库   时间:2016-05-11 19:48:52    阅读次数:3580
Codeforces Beta Round #91 (Div. 1 Only) A. luckSum(区间分块求解)
这道题的主要解法在对1~100000000 中的luckNumber进行分块求和; 例如, luckSum[0] = Sum[1,4] luckSum[1] = Sum[5,7] luckSum[2] = Sum[8,44] ...................... 然后根据l,r 的区间跨度来 ...
分类:其他好文   时间:2016-05-11 15:07:53    阅读次数:131
Codeforces Round #350 (Div. 2) A
Description On the planet Mars a year lasts exactly n days (there are no leap years on Mars). But Martians have the same weeks as earthlings — 5 work ...
分类:其他好文   时间:2016-05-11 10:49:47    阅读次数:455
LeetCode 319
Bulb Switcher There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you ...
分类:其他好文   时间:2016-05-10 20:26:32    阅读次数:211
Codeforces Round #350 (Div. 2)
A. Holidays 题意:一个礼拜有两天放假,那么n天最多和最少分别有多少天假呢? 题解:首先算最少的,就是n%7,如果余6的话则要+1。最多则是尽量让余下的天数为假期,如果余一天就加一天,余二就加两天,大于二依然只加两天,直到余六再加一天。 代码: 1 /*A*/ 2 #include<cst ...
分类:其他好文   时间:2016-05-10 18:50:16    阅读次数:168
Codeforces Round #351 (VK Cup 2016 Round 3, Div. 2 Edition)
A. Bear and Game 题意:一个体育节目,它可能在某一分钟是很有趣的,其他时间都是很无聊的,如果持续十五分钟都很无聊的话那么Bear就会关掉电视,问什么时候会关掉电视。 题解:用第i个有趣的时间减去第i-1个有趣的时间,如果差值大于十五分钟那就输出第i个有趣的时间+15。注意第一个有趣的 ...
分类:其他好文   时间:2016-05-10 18:36:39    阅读次数:134
paper 68 :MATLAB中取整函数(fix, floor, ceil, round)的使用
MATLAB取整函数 1)fix(x) : 截尾取整. >> fix( [3.12 -3.12]) ans = 3 -3 (2)floor(x):不超过x 的最大整数.(高斯取整) >> floor( [3.12 -3.12]) ans = 3 -4 (3)ceil(x) : 大于x 的最小整数 > ...
分类:其他好文   时间:2016-05-10 16:38:25    阅读次数:160
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!