摘要: CCPC网络赛结束了,一个新的阶段开始了。 转载Samuel Ullman这篇惊艳的文章,时刻提醒自己。 愿世间所有人青春永驻。 译文 原文 阅读全文
posted @ 2018-08-26 15:26 ronnie14165 阅读(1099) 评论(0) 推荐(0) 编辑
摘要: Perferences Key Binding ; User 阅读全文
posted @ 2018-08-26 12:52 ronnie14165 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 不要轻易尝试! 运行前务必确保计算机所有文件已保存 阅读全文
posted @ 2018-08-24 21:11 ronnie14165 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1068 include using namespace std; struct man { int index; int score; }p[5050]; bool cmp(man x, man y) { if(x.score != y.score) return x.score y.score; 阅读全文
posted @ 2018-08-24 15:21 ronnie14165 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 万能头文件 include PI 四舍五入 (https://zhidao.baidu.com/question/2117495607995670467.html) 记录函数运行时间 include include using namespace std; int main() { clock_t 阅读全文
posted @ 2018-08-24 15:01 ronnie14165 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 关于set(http://www.cnblogs.com/yaoyueduzhen/p/4536929.html) 阅读全文
posted @ 2018-08-23 22:25 ronnie14165 阅读(53) 评论(0) 推荐(0) 编辑
摘要: ``` #define mem(a) memset(a,0,sizeof(a)) int read() { int x=0,f=1;char ch=getchar(); while(!isdigit(ch)){if(ch=='-')f=-1;ch=getchar();} while(isdigit(ch))x=x*10+ch-'0',ch=getchar(); r... 阅读全文
posted @ 2018-08-21 20:40 ronnie14165 阅读(82) 评论(0) 推荐(0) 编辑
摘要: ``` { "cmd" : ["exo-open --launch TerminalEmulator bash -c \"g++ $file_name -o ${file_base_name} -lm -Wall; ./${file_base_name}; exec bash\""],//-x "selector" : "source.c, source.c++", "shell":true,... 阅读全文
posted @ 2018-08-21 16:59 ronnie14165 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 答题就是贪心算法,[题目链接](http://codeforces.com/problemset/problem/1027/C) 笔者主要想借这个题谈一下如何缩短代码运行时间 1.scanf与cin,优先选择scanf 2.memset最好不要用 3.本题中,不需要开一个1e6的数组储存输入数据 4 阅读全文
posted @ 2018-08-20 15:19 ronnie14165 阅读(166) 评论(0) 推荐(0) 编辑
摘要: cf B题,莫名其妙过,g++显示输入输出%lld有错误提示,,,目前查资料无解,,, 原题(http://codeforces.com/gym/227252/standings/friends/true) 阅读全文
posted @ 2018-08-20 00:20 ronnie14165 阅读(196) 评论(0) 推荐(0) 编辑