- 博客(89)
- 收藏
- 关注
原创 某论文的方法复现
原论文:复现其中的:#include <bits/stdc++.h>using namespace std;int H=5,Z=3;double data[15][10000];double a[15];int tot[15];void work(int sumH,int sumZ,int nowH,int nowZ,double nowLength) { cout<<"SUMH="<<sumH<<sumZ<<nowH&
2021-12-21 23:57:31
691
原创 【Workflow】5类经典科学工作流任务数统计
5类经典科学工作流任务数统计无脑随笔:数一数Workflow里那些“名不副实”的xml文件们。从此失眠不数羊哦。CyberShakeNametaskNumjob-idCyberShake3030“ID00000”~“ID00029”CyberShake5050“ID00000”~“ID00049”CyberShake100100“ID00000”~“ID00099”CyberShake10001000“ID00000”~“ID00999”
2021-12-20 17:09:07
1550
1
原创 WorkflowSim HEFT 代码注解
/** * Copyright 2012-2013 University Of Southern California * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://w
2021-12-03 16:32:42
386
1
原创 WorkflowSim根据既定调度方案进行遍历:以深度优先搜索为例(DFS)
As is known to all……咳咳众所周知,一个workflow就是一张有向图,以Epigenomics为例,它大概长这样:图.1 Epigenomics_46,实际有47个任务工作流的形状就像好多棵交错纠缠的树,构成森林……哦不还是 有向图呀;其中可能存在多个入度为零的节点,我们暂且称之为“根节点”。以上图为例,有两个“根节点”,我们可以用一句话很方便的找出它们:至此,已知task_i->vm_solution[i],接下来就是仿真调度。具体安排:每台vm上的时间片(Ev
2021-12-03 16:18:40
577
原创 java强制double类型转换int()
写着写着,就又忘了……做个实验,存一下吧:代码:// a litte test double asdjf = 39.8; double asdjr = 39.5; double asdjv = 40.1; System.out.println("\nint():"); System.out.println( "(int)(39.8)=" + (int) asdjf + " (int)(39.5)=" + (int) asdjr + " (int)(40.1)=" +
2021-09-17 14:46:19
3550
原创 VS的调试功能小结
巧用VS的调试功能可以帮助我们更好的理解程序,追踪变量各种值的变化等等,对循环、函数和递归的学习也有帮助。如果你已经掌握了VS调试技巧,本文可以跳过(去年的稿qaq)。以下内容主要摘自网络。写在前面[1]初学 C 语言程序设计,往往一看到自己编的程序出现错误就不知所措了。有些同学上机时,只要程序能够顺利运行,就认为大功告成,根本没想到程序还存在某些隐患。要想不犯或少犯错误,就需要了解 C 语言程序设计的错误类型和纠正方法。 C 语言程序设计的错误可分为语法错误、连接错误、逻辑错误和运行错
2021-09-17 02:23:47
6101
原创 cloudsim相关-MATLAB调用java
随便记点有的没的。1.工具和平台eclipsejava环境配好即可。cloudsim3.0也好下,参考以下网址:cloudsim-3.0 download | SourceForge.netDownload cloudsim-3.0 for free. cloudsim3.0 using netbeans. Nonehttps://sourceforge.net/projects/cloudsim30/但可能缺东西。flanagan此处如果提示缺少flanagan
2021-09-14 17:11:14
486
原创 2020-12-12
#include<bits/stdc++.h>using namespace std;int n;pair<long long, long long> num[100010];priority_queue<long long, vector<long long>, greater<long long> > q;int main() { cin>>n; for(int i = 0; i<n; i++) ci
2020-12-12 11:10:59
157
原创 memcmp()用于数组比较
memcmp()用于数组比较C++ Reference:http://www.cplusplus.com/reference/cstring/memcmp/示例给出了一种类似strcmp的用法,用它来比较字符串……还多个sizeof()Example/* memcmp example */#include <stdio.h>#include <string.h>int main (){ char buffer1[] = "DWgaOtP12df0"; ch
2020-11-19 12:43:51
12439
原创 Codeblocks20.03调整字体格式报错及解决
Codeblocks20.03调整字体格式报错及解决:wxWidgets Debug AlertA debugging check in this application has failed.…\include/wx/font.h(282): assert “numWeight > 0” failed in GetWeightClosestToNumericValue().参考解法:https://my.oschina.net/wwfifi/blog/4282989简单但不明所以然的解法
2020-10-29 00:13:55
12512
11
原创 MySQL8.0 zip安装 initialize error found option without preceding group in config file *** at line1
一个小问题MySQL8.0 zip安装 initialize error found option without preceding group in config file *** at line1以及解决出现此问题的原因是:在安装目录下添加的my.ini保存时编码是utf-8.另存为ansi就好了:...
2019-07-01 12:01:16
1072
3
原创 ORACLE pl/sql自定义函数、存储过程
ORACLE pl/sql自定义函数实验六、七 PL/SQL编程(2)目的和要求:1. 掌握存储过程和函数的使用2. 掌握游标的使用3. 掌握程序包的使用4. 掌握触发器的使用实验内容:SCOTT用户拥有DEPT、EMP、SALGRADE表对象,其中,DEPT是部门信息表,包括:部门编号、部门名称、部门地址三个属性,即DEPT(DEPTNO,DNAME,LOC)。E...
2019-04-02 09:34:20
1789
原创 Oracle 0305
Ref:http://www.w3school.com.cn/sql/sql_dates.asphttps://blog.youkuaiyun.com/qq_20989105/article/details/76190566Build:sqlplus Jsj202/Jsj123456@orclCREATE TABLE DEPT(DEPTNO INT PRIMARY KEY, DNAME VARCH...
2019-03-05 10:04:16
593
原创 Hello2019 微信小程序开发学习
###微信小程序开发学习https://www.cnblogs.com/gulei/p/6589177.html
2019-03-02 22:02:23
108
原创 Little Tips for Android Studio
1.设置使用Ctrl+鼠标滚轮调整字体大小:File->Settings->Editor->General->Change font size(Zoom) with Ctrl+Mouse Wheel
2019-01-18 18:06:31
294
原创 SQL 建立数据库、表 && 表中增删数据项
我们这节课的任务是:王珊老师《数据库系统概论(5)》第三章习题4,5,9。以下代码来自第4题1.建库建表:--drop table S --删除表SCreate database SQLTest4Create table S ( SNO CHAR(5), SNAME CHAR(8), STATUS INT, CITY CHAR(6))Create table P ...
2018-11-21 18:46:51
461
原创 SQL Chapter5 plus
--以用户张勇的身份登录Insert into StudentValues('201215122','刘晨','女',19,'CS')Insert into StudentValues('201215123','王敏','女',18,'CS')Insert into StudentValues('201215125','张立','男',19,'IS')...
2018-11-21 18:44:25
223
原创 SQL Chapter678
USE SQLTest4GOIF EXISTS ( SELECT SC.Cno, SC.Grade, SC.Sno, Course.CNAME, Course.Ccredit, Course.Cpno FROM Course, SC WHERE SC.Cno = Course.CNO AND Course.CNAME = '数据库' A...
2018-11-21 18:44:15
327
原创 SQL Chapter5
Create database SQLTest4Create table Student ( SNO CHAR(15), SNAME CHAR(15), SSex CHAR(5), Sdept CHAR(5))Create table Course ( CNO INT, CNAME CHAR(8), Cpno INT, Ccredit INT)Create tabl...
2018-11-21 18:44:08
487
原创 Light oj 1356
二分图最大独立集+质因子分解#include <bits/stdc++.h>#define INF 0x3f3f3f3f;using namespace std;const int MXN = 40010;const int MXM = 200010;const int MXX = 500010;struct Edge{ int v,nxt;}edge[...
2018-10-18 10:37:20
247
原创 关于除法
若 a ÷ b = q … r, 则 r 与 a 的符号总是相同,而 q 的符号由 a 和 b 的符号决定:同号得正异号得负int main(){ int a = -3; int b = 3; int c = 7; int d = -7; printf("%d/%d=%d %d%%%d=%d\n",c,a,c/a,c,a,c%a); printf(...
2018-10-15 01:24:28
332
原创 HDU 3221矩阵快速幂&欧拉定理
#include <bits/stdc++.h>#define ll long longusing namespace std;const int N = 2;const int MX = 40000;ll a, b, p, MOD, n, tot, prime[7000];bool nop[MX];struct Matrix { ll mat[N][N];...
2018-10-07 00:36:48
450
原创 L. Poor God Water [ ACM-ICPC 2018 焦作赛区网络预赛 ]
[题库链接] https://nanti.jisuanke.com/t/31721显然是矩阵快速幂的题,暴力枚举了系数,挺悲哀的。得到的4阶系数矩阵对前5项不成立。十分抱歉还没有理解这个转移的道理。ACcode#include <set>#include <map>#include <list>#include <cmath>...
2018-09-15 18:28:03
335
原创 BUAA Summer Training 2018.08.27 E - Black or White [Aizu - 1382]
ProblemHere lies a row of a number of bricks each painted either black or white. With a single stroke of your brush, you can overpaint a part of the row of bricks at once with either black or white ...
2018-09-05 20:41:47
741
原创 Compass Card Sales Gym - 101572C NCPC2017
Problem:https://odzkskevi.qnssl.com/da9adfb686ef541a14cec9856721130a?v=1535198186 Source:http://codeforces.com/gym/101572/attachmentsSolution//This is my AC version #include<bits/stdc++.h>...
2018-09-01 03:12:20
445
原创 Team Match
题目描述The programming competition not only depends on the programmers, but also directed by the coaches. Mr Z is a coach who direct n players to take part in the Guangxi Province Collegiate Programmin...
2018-08-31 19:09:48
561
原创 Parallel Lines ICPC 2017 Japan Tsukuba
时间限制: 10 Sec 内存限制: 128 MBProblemGiven an even number of distinct planar points, consider coupling all of the points into pairs. All the possible couplings are to be considered as long as all the...
2018-08-31 19:02:20
419
原创 HDU 6438 Buy and Resell
Buy and ResellTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 639 Accepted Submission(s): 153Problem DescriptionThe Power Cube is u...
2018-08-25 22:22:06
278
原创 Crowd Control
4895: Crowd Control时间限制: 1 Sec 内存限制: 128 MB题目描述The BAPC draws a large number of visitors to Amsterdam. Many of these people arrive at the train station, then walk from intersection to interse...
2018-08-25 01:18:02
502
原创 HDU 6437 Problem L.Videos
http://acm.hdu.edu.cn/showproblem.php?pid=6437 最大费用?先取相反数得最小再取相反数即最大。 最小费用最大流。将每部电影一分为二的拆开,左点连源点s,右点连汇点t,连的都是容量为INF、费用为0的边,左到右点自然连的是容量为1,费用-val的边; 再来一个到源点s的es,它到s连一条容量k(k个人)、费用0; 考虑到电影的时间冲突,O(m2m2...
2018-08-23 23:17:49
248
原创 洛谷P1231 教辅的组成
https://www.luogu.org/problemnew/show/P1231 听说这题也可以用匹配来做? 网络流入门题。一份书册由一本书、一本练习册和一本答案组成,给出书与练习册以及书与答案的对应关系,求最多能组成多少份书册。 将书、题、答案的n1,n2,n3三组节点间建图,n2连源点,n3连汇点,容量设为1,跑一遍最大流。 注意如果不将书拆点,则一本书可以重复使用;将n1本书拆...
2018-08-23 22:19:02
270
原创 BJOI 2018 求和
题目描述master对树上的求和非常感兴趣。他生成了一棵有根树,并且希望多次询问这棵树上一段路径上所有节点深度的k次方和,而且每次的k可能是不同的。此处节点深度的定义是这个节点到根的路径上的边数。他把这个问题交给了pupil,但pupil并不会这么复杂的操作,你能帮他解决吗?输入第一行包含一个正整数n,表示树的节点数。 之后n−1行每行两个空格隔开的正整数i,j,表示树上的一条...
2018-08-10 23:25:02
374
原创 Birthday Paradox LightOJ - 1104
Sometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where there are 23 people including you. What is the probability...
2018-08-10 22:47:32
363
原创 D - Just another Robbery LightOJ - 1079
As Harry Potter series is over, Harry has no job. Since he wants to make quick money, (he wants everything quick!) so he decided to rob banks. He wants to make a calculated risk, and grab as much mone...
2018-08-10 11:32:00
321
原创 Race to 1 Again LightOJ - 1038
Rimi learned a new thing about integers, which is - any positive integer greater than 1 can be divided by its divisors. So, he is now playing with this property. He selects a number N. And he calls th...
2018-08-10 00:31:54
281
原创 HDU 多校联合训练第六场 1009 ( Werewolf )
WerewolfTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 0 Accepted Submission(s): 0Problem Description“The Werewolves” is a popular...
2018-08-08 17:11:50
602
原创 [upcoj6759]异或序列 莫队
时间限制: 1 Sec 内存限制: 128 MB题目描述已知一个长度为n的整数数列a1,a2,…,an,给定查询参数l、r,问在al,al+1,…,ar区间内,有多少子序列满足异或和等于k。也就是说,对于所有的x,y(l≤x≤y≤r),满足ax⊕ax+1⊕⋯⊕ay=k的x,y有多少组。输入输入第一行为3个整数n,m,k。第二行为空格分开的n个整数,即a1,a2,…,an。...
2018-08-08 00:32:05
328
原创 2018 ACM 国际大学生程序设计竞赛上海大都会赛 F [Color it]
时间限制:C/C++ 3秒,其他语言6秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld题目描述There is a matrix A that has N rows and M columns. Each grid (i,j)(0 ≤ i < N, 0 ≤ j < M) is painted in white ...
2018-08-07 11:42:02
540
原创 2018 ACM 国际大学生程序设计竞赛上海大都会赛 J [Beautiful Number]
链接:https://www.nowcoder.com/acm/contest/163/J 来源:牛客网时间限制:C/C++ 8秒,其他语言16秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld题目描述NIBGNAUK is an odd boy and his taste is strange as well. It s...
2018-08-05 21:28:51
384
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人