摘要: include include using namespace std; struct _node { int num;//钥匙编号 char op;//操作 g:取钥匙 r还钥匙 int time;//某时间 bool operator a.time; else { if (op != a.op) 阅读全文
posted @ 2019-08-20 23:19 归根复命 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 希望 我的心分外的寂寞。 然而我的心很平安:没有爱憎,没有哀乐,也没有颜色和声音。 我大概是老了。我的头发已经苍白,不是很明白的事么?我的手颤抖着,不是很明白的事么?那么我的灵魂一定也颤抖着,头发也一定苍白了。 然而这时许多年前的事了。 这以前,我的心也曾充满过血腥的歌声:血和铁,火焰和毒,恢复和报 阅读全文
posted @ 2019-08-17 17:05 归根复命 阅读(424) 评论(0) 推荐(0) 编辑
摘要: include using namespace std; int main() { int n; cin n; int t = n / 50; int sum = t 7; n %= 50; t = n / 30; sum += t 4; n %= 30; t = n / 10; sum += t; 阅读全文
posted @ 2019-08-16 18:30 归根复命 阅读(110) 评论(0) 推荐(0) 编辑
摘要: // exercise.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // include "pch.h" include using namespace std; struct ball { int pos;//位置 int dir;//方向,1为右 }; ball b 阅读全文
posted @ 2019-08-16 18:21 归根复命 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 下载链接 链接: https://pan.baidu.com/s/1k3rBBuXWgppcte oUuXNhw 提取码: iq91 下载之后里面也有教程,如果按照步骤最后无法打开则: 若扩展打不开,则看文件夹里的word文档解决,我是2019版,修改CSXS.9。 然后扩展是灰色,则表明你没装好插 阅读全文
posted @ 2019-08-11 14:42 归根复命 阅读(10500) 评论(0) 推荐(0) 编辑
摘要: 70分运行超时 include using namespace std; //结构体,记录每个路口状态和所剩时间 struct status { int color; int time; }; int r, y, g; status st[100001]; //函数,得到下一个灯色,所剩时间为最大 阅读全文
posted @ 2019-08-10 17:17 归根复命 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 随感录四十九 凡有高等动物,倘若没有遇着意外的变故,总是从幼到壮,从壮到老,从老到死。 我们从幼到壮,既然毫不为奇的过去了;自此以后,自然也该毫不为奇的过去。 可惜有一种人,从幼到壮,居然也毫不为奇的过去了;从壮到老,便有点古怪;从老到死,却更是奇想天开,要占尽了少年的道路,吸尽了少年的空气。 少年 阅读全文
posted @ 2019-08-10 13:13 归根复命 阅读(818) 评论(0) 推荐(0) 编辑
摘要: ``` include include include include using namespace std; struct oprt { char opr; int clas;//运算符等级 }; oprt op[5] = { {' ',0}, {'+',1},{' ',1},{'x',3},{ 阅读全文
posted @ 2019-08-09 16:06 归根复命 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Tips: 看到这个题目,第一想到的肯定时要报数嘛,还要循环起来,那就用循环队列,可是难道要自己写?利用STL中queue实现循环队列循环队列主要是有一个指针可以指来指去,来去自如,但queue中好像能用也就时头front和尾back,但这都固定没法用。问题就来了那么既然想要指针绕着队列转没办法实现 阅读全文
posted @ 2019-08-08 00:40 归根复命 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Tips: 阅读全文
posted @ 2019-08-07 21:56 归根复命 阅读(173) 评论(0) 推荐(0) 编辑