摘要:
include include using namespace std; struct _node { int num;//钥匙编号 char op;//操作 g:取钥匙 r还钥匙 int time;//某时间 bool operator a.time; else { if (op != a.op) 阅读全文
摘要:
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; 阅读全文
摘要:
// exercise.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // include "pch.h" include using namespace std; struct ball { int pos;//位置 int dir;//方向,1为右 }; ball b 阅读全文
摘要:
70分运行超时 include using namespace std; //结构体,记录每个路口状态和所剩时间 struct status { int color; int time; }; int r, y, g; status st[100001]; //函数,得到下一个灯色,所剩时间为最大 阅读全文
摘要:
``` include include include include using namespace std; struct oprt { char opr; int clas;//运算符等级 }; oprt op[5] = { {' ',0}, {'+',1},{' ',1},{'x',3},{ 阅读全文