
codeforces
颜之年
这个作者很懒,什么都没留下…
展开
-
Problem - 1118B - Codeforces(Tanya and Candies)
这是Codeforces Round #540 (Div. 3)的第二题,所以题目难度适中,题目如下:题目链接:https://codeforces.com/contest/1118/problem/BTanya hasncandies numbered from1ton. Thei-th candy has the weightaiai.She plans to eat ...原创 2019-02-28 17:26:04 · 460 阅读 · 0 评论 -
CodeForces - 1118E Yet Another Ball Problem
题目链接:https://codeforces.com/contest/1118/problem/E这题能想到按照(1,2)(2,1)(1,3)(3,1)的方法来排列就解决了要注意的是N和K要开long long类型的,因为下面代码中的那句表达式的嘴边部分会超出INT_MAX的值,变成负的。#include <iostream>using namespace std;...原创 2019-03-05 14:46:11 · 204 阅读 · 0 评论 -
Coffee and Coursework
这个问题我一开始没做出来,参考了https://blog.youkuaiyun.com/a1097304791/article/details/87874948#t3和https://www.cnblogs.com/albert67/p/10414426.html|之后才会做,我就权当记录一下,并且再理一下思路吧:收获:1:二分查找在数据量较大的有序数据中的优化作用; 2:思...原创 2019-03-04 14:14:44 · 339 阅读 · 0 评论