- 博客(5)
- 问答 (2)
- 收藏
- 关注
原创 code forces 1A
Theatre Square in the capital city of Berland has a rectangular shape with the size n × m meters. On the occasion of the city's anniversary, a decision was taken to pave the Square with square grani
2016-10-22 17:38:21 391
原创 计蒜客 寻找插入位置
给定一个已经升序排好序的数组,以及一个数 targettarget,如果 targettarget 在数组中,返回它在数组中的位置。 否则,返回 targettarget 插入数组后它应该在的位置。 假设数组中没有重复的数。以下是简单的示例: [1,3,5,6], 5 → 2 [1,3,5,6], 2 → 1 [1,3,5,6], 7 → 4 [1,3,5,6], 0 → 0 输入格
2016-10-21 21:32:23 262
原创 hdu1002
A + B Problem II Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 322950 Accepted Submission(s): 62743
2016-10-19 21:37:12 293
原创 codeforces732A A. Buy a Shovel
这道题题的大意就是你身上有一个额外的1-9的零钱和无数个10块,然后给出一个物品的价格,问买它的最少数量,其实最多超不过10,如果超多10一定是10的整数倍就一定可以,然后题中说可以用那个额外的钱也可以不用, not using the coin of r burles),具体代码如下: #include #include using namespace std; int main() { i
2016-10-18 07:45:41 621
原创 计蒜客之矩阵翻转
今天做矩阵翻转这个题,想着把一个矩阵i,j交换位置就可以了,然后就直接写了,然后就是过不去,然后百度其他人的博客啥的,发现他们有写的是新加一个数组然后往里面读数,然后试了一下他们的可以过,然后觉得自己也没有错,后来想了好久加百度,没有考虑矩阵行数和列数是奇数的情况,所以一直错,以后做题一定要考虑的更加全面一点,然后通过的代码如下:#include #include using namespace
2016-10-14 16:51:42 2098
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人