
Codeforce
abns
这个作者很懒,什么都没留下…
展开
-
Codeforces1000C. Covered Points Count
http://codeforces.com/problemset/problem/1000/Ctime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given nn segments on a co...原创 2018-08-06 12:28:32 · 189 阅读 · 0 评论 -
Codeforces 1000BLight It Up(模拟)
http://codeforces.com/problemset/problem/1000/BB. Light It Uptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently, you boug...原创 2018-08-06 14:24:40 · 125 阅读 · 0 评论 -
51nod1414 冰雕
http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1414&judgeId=5961781414 冰雕 题目来源: CodeForces基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:3级算法题 收藏 关注白兰大学正在准备庆祝成立256周年。特别任命副校长来准备校园的装...原创 2018-08-07 11:24:56 · 129 阅读 · 0 评论 -
51nod 1449 砝码称重
1449 砝码称重 题目来源: CodeForces基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 收藏 关注现在有好多种砝码,他们的重量是 w0,w1,w2,... 每种各一个。问用这些砝码能不能表示一个重量为m的东西。样例解释:可以将重物和3放到一个托盘中,9和1放到另外一个托盘中。 Input单组测试数据。第一行有...原创 2018-08-16 17:07:09 · 434 阅读 · 0 评论 -
51nod 1420 数袋鼠好有趣
1420 数袋鼠好有趣 题目来源: CodeForces基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 收藏 关注有n只袋鼠。每只袋鼠的大小用一个整数表示。一只小袋鼠能装进一只大袋鼠的条件是,大袋鼠的大小至少是小袋鼠的两倍。每只大袋鼠最多可以装一只袋鼠。小袋鼠被装进大袋鼠之后就不能再装其它的袋鼠了。小袋鼠被装进大袋鼠之后就不能被我们看...原创 2018-08-20 15:38:17 · 214 阅读 · 0 评论 -
A. Alyona and Numbers(CF ROUND 358 DIV2)
暴力会超时。。。#include<iostream>using namespace std;int main(){ long long n,m,sum=0; cin>>n>>m; for(int i=1;i<=n;i++){ sum+=(i+m)/5-i/5; } cout<<sum<<endl; retu...原创 2018-11-27 13:20:32 · 154 阅读 · 0 评论 -
Codeforces Round #525 (Div. 2)
C. Ehab and a 2-operation tasktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou're given an array aa of length nn. You can perf...原创 2018-12-10 13:36:39 · 98 阅读 · 0 评论 -
B. Kvass and the Fair Nut
https://codeforces.com/contest/1084/problem/B题意为他有n个杯子,然后你需要倒出来l升水,现在需要求能杯子里边倒出那么多水之后,剩下的杯子里边的水的的最小值。先判断这些水能不能充满水桶。如果能的话,可以先求出最少的杯子里边的值然后判断,每杯水与最小值的水之间的差值能否使桶充满。#include<iostream>#includ...原创 2018-12-17 11:25:04 · 256 阅读 · 0 评论