码迷,mamicode.com
首页 >  
搜索关键字:codeforces round    ( 23104个结果
Codeforces Round #697 (Div. 3) A-G
A. Required Remainder 题意: $t$组样例,判定一个正整数$n$是否存在一个大于$1$的奇数因子,\((1≤t≤10^4), (2≤n≤10^{14})\) 思路: 打表,发现只有满足$2^$的数字不存在奇数因子。 Code: int main(){ ios::sync_wit ...
分类:其他好文   时间:2021-02-15 12:39:39    阅读次数:0
1026 程序运行时间 (15 分)
水题~,就简单转换下时间。 int a,b; int main() { cin>>a>>b; int tim=round((b-a)/100.0); int hh=tim/3600,mm=tim%3600/60,ss=tim%3600%60; printf("%02d:%02d:%02d\n",hh ...
分类:其他好文   时间:2021-02-15 12:25:04    阅读次数:0
Educational Codeforces Round 102 (Rated for Div. 2)E题(分层图、最短路)
https://codeforces.com/contest/1473/problem/E vector存图: 1 #define bug(x) cout<<#x<<" is "<<x<<endl 2 #define IO std::ios::sync_with_stdio(0),cin.tie(0 ...
分类:其他好文   时间:2021-02-15 12:17:20    阅读次数:0
Vue组件模块的分离写法
源代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" conten ...
分类:其他好文   时间:2021-02-10 13:24:51    阅读次数:0
寒 假 队 测 Round #2
\(20 + 30 + 40 + 10 = 100pts\) 这套屑题能测成这样我也是很服。 \(T1\):点分治,考的时候几乎想出正解了,以为 不可做 然后弃掉了。。 \(T2\):贪心题就从来没推出过结论。 \(T3\):矩乘板子,我忘了,我是SB。 \(T4\):带 模 拟。 $T1$和$T3 ...
分类:其他好文   时间:2021-02-10 13:20:54    阅读次数:0
2020 BIT冬训-贪心 G - Voting CodeForces - 749C
Problem Description There are n employees in Alternative Cake Manufacturing (ACM). They are now voting on some very important question and the leading ...
分类:其他好文   时间:2021-02-10 13:08:04    阅读次数:0
2020 BIT冬训-贪心 F - Parallelogram is Back CodeForces - 749B
Problem Description Long time ago Alex created an interesting problem about parallelogram. The input data for this problem contained four integer poin ...
分类:其他好文   时间:2021-02-10 13:02:09    阅读次数:0
go context理解
### go context理解 #### context包 总结起来就一句话:一个接口,四个实现,六个方法 (1.)一个接口 type Context interface { Deadline() (deadline time.Time, ok bool) Done() ←chan struct ...
分类:其他好文   时间:2021-02-10 12:51:22    阅读次数:0
Hills And Valleys
http://codeforces.com/contest/1467/problem/B 题意 \(一个数列里有波峰波谷\) \(波谷:a[i]<min(a[i+1],a[i-1]])\) \(波峰:a[i]>max(a[i+1],a[i-1])\) \(sum = 波峰数+波谷数\) \(若可以任 ...
分类:其他好文   时间:2021-02-09 12:30:17    阅读次数:0
Codeforces Round #699 Problem C Fence Painting 贪心
https://codeforc.es/contest/1481/problem/C 题意:n块栅栏,告诉你原先的颜色和期望得到的颜色,并告诉你每位油漆工必须刷上的一个颜色,问你安排每位油漆工刷哪块栅栏能使栅栏变成期望的颜色. 思路核心:浪费,怼着一块板(最后一个油漆工要刷的板)拼命刷那些不需要的颜 ...
分类:其他好文   时间:2021-02-09 12:20:19    阅读次数:0
23104条   上一页 1 ... 17 18 19 20 21 ... 2311 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!