首页 > TAG信息列表 > bupt

BUPT 2022 Summer Training #6

题目链接:https://vjudge.net/contest/504104 D - It's a Mod, Mod, Mod, Mod World 是以前都没听说过的类欧几里得算法,呜 G - Intersecting Rectangles 题意 给定n个矩形,判断是否存在两个矩形相交,即边框有交点,保证所有的横坐标互不相同,所有纵坐标互不相同。 主席树做法 把每个矩形

BUPT 2022 Summer Training #6

题目链接:https://vjudge.net/contest/504104 D - It's a Mod, Mod, Mod, Mod World 是以前都没听说过的类欧几里得算法,呜 G - Intersecting Rectangles 题意 给定n个矩形,判断是否存在两个矩形相交,即边框有交点,保证所有的横坐标互不相同,所有纵坐标互不相同。 主席树做法 把每个矩形

BUPT 2022 Summer Training #5

链接:https://vjudge.net/contest/504103#overview A - Berstagram 水题略 C - Trip to Saint Petersburg 题意 有一堆事情,每件事情有开始时间和结束时间,以及做完这件事能赚到的钱。一个人来这个地方赚钱,他可以做任意多件事,且不同事件的时间可以重叠。但他每多待一天就得花k的伙食

BUPT 2021 Winter Training #12

链接:https://vjudge.net/contest/481673#overview A - Natives 水题略 D - Exam registration 题意 n天之中,每天有\(a_i\)人考试,当天考试人数上限为\(b_i\)人。当前情况可能不合法,即存在\(a_i\geq b_i\).调整考生的考试时间来让整个考试安排合法,并且使得考试天数变动最大的学生变

BUPT 2021 Winter Training #11

链接:https://vjudge.net/contest/481321#overview A - Toda 2 题意 一群玩dota的人想组个战队,然而他们的段位良莠不齐,于是决定组队掉分掉到所有人段位一样为止。由于某种原因,他们不能单人掉分,只能选择从双排到五排的多人掉分。每打一局所有人段位-1.请问他们能达到相同段位的最大

BUPT 2021 Winter Training #6

C - Even Path 水题略 F - Regular Forestation 题意 给一棵树,求出一点使得删去这点后剩下的两棵以上的树两两同构,且剩下树的数量尽可能多 思路 只有重心可能为good cutting point,求出重心再进行检验即可。 (有两个重心时不存在good cutting point) 关于无根树同构 由于树可能有两个

BUPT大作业-冯诺依曼机

这个玩意当时折磨的我够呛 还是建议自己好好去理解大作业 代码如下: #include<stdio.h> #include<string.h> int ip=0; int ir=0; int flag=0; int mici( int m) { int i=1; int x=0; for (x=0;x<m;x++) { i=i*2; } return i; } int logic1 (int m,int n) { if (m&&n)

BUPT-大作业 多核版

如下: #include<stdio.h> #include<windows.h> #include<string.h> HANDLE hMutex; HANDLE Mutex[32768]; int ip[3]={0};//程序计数器 int ir[3]={0};//指令寄存器 int flag[3]={0};//标志寄存器 char code1[16384];//代码段一 char code2[16384];//代码段二 int num[32768

videoJS 播放 u3m8 格式视频Demo

videoJS 播放 u3m8 格式视频Demo VideoJs 官网地址 <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>前端播放m3u8格式卫视视频</title> <script src="https://cdn.bootcss.com/video.js/7.7.

BUPT|OJ 126. 中序遍历序列

题目来源 北邮OJ #include<iostream> #include<cstring> #include<math.h> #include<limits.h> using namespace std; /*Input: 2 4 1 2 3 4 4 1 3 2 4 */ int main() { int T,flag,temp; int a[405],N; cin>>T; while(T--){ cin>>N;

BUPT OJ|127.最小距离查询

题目来源 北邮OJ 法一:最后的输出一定要用printf,cout会运行超时 #include<iostream> #include<algorithm> #include<cstring> #include<limits.h> #include<math.h> #include<vector> using namespace std; int main() { std::ios::sync_with_stdio(false);

acm1_BUPT

ACM c++标准库 今天的重点: <vector>、<string>、<algorithm> 以后还会见到: <queue>、<stack>、<set>、<map>、<bitset>、<functional>、<complex> c标准库常用函数回顾 <cstring> strlen() 字符串长度 strcmp() 字符串比较 strcpy() 字符串拷贝 memset

2019.05.30 S4 BUPT BP 客户增强说明

- 看了一圈,发现网上BUPT增强的很少,有的也是做一个字段的页签的增强,我自己花时间研究了一下,在BP增加新的interface 界面按钮。 BP页签增强部分就不写了,大家看链接吧 加上如何做出新的interface 界面吧。感谢各位大佬的支持哈。 英文 https://www.abaplog.com/Icerik/50/add-new-tab-

[面试]BUPT面试算法题目

看到了别人上传的一份BUPT的面试算法题目。

北邮oj bupt oj Three Points On A Line

Three Points On A Line 时间限制 1000 ms 内存限制 65536 KB 题目描述 Given points on a 2D plane, judge whether there're three points that locate on the same line. 输入格式 The number of test cases T(1≤T≤10) appears in the first line of input. Each test case

北邮oj bupt oj 日期

日期 时间限制 1000 ms 内存限制 65536 KB 题目描述 请你计算出第X年Y月Z日是第X年的第几天。其中,1月1日是第一天,1月2日是第二天,以此类推。 计算时请注意闰年的影响。对于非整百年,年数能整除4是闰年,否则不是闰年;对于整百年,年数能整除400是闰年,否则不是闰年。如1900年和1901年不