自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

这是一个正经的RR 【Seriously

旋转吧黑胶唱片 【Why so serious

  • 博客(54)
  • 收藏
  • 关注

原创 ZSH安装整理

插件下载位置:/home/dongxt/.oh-my-zsh/custom/plugins。皮肤下载位置:/home/dongxt/.oh-my-zsh/custom/themes。如果使用git clone速度太慢,则修改~/.gitconfig,添加。这里使用level10k,可以根据自己的喜好进行配置。安装oh-my-zsh,使用curl -k忽略证书。参考网上zsh皮肤,在~/.zshrc中进行修改。配置插件,插件下载地址。配置git忽略根证书。最后执行source。

2022-12-23 11:23:38 237 1

原创 LTTng CenOS 源码安装整理(安装步骤以及报错解决方法)

LTTng: (Linux Trace Toolkit Next Generation),它是用于跟踪 Linux 内核、应用程序以及库的系统软件包.LTTng 主要由内核模块和动态链接库(用于应用程序和动态链接库的跟踪)组成。根据这个介绍我们大概可以知道需要安装LTTng模块、支持内核模块以及支持用户应用程序(C/C++、JAVA、Python, etc.)模块。第一次安装的时候按照官方手册安装了一遍,发现并不能用,中间遇到了很多坑,关于LTTng的教程也很少,在这里记录一下。

2022-11-07 16:05:50 1488 3

原创 MD学习网站汇总【自用】

msi2lmp使用方法msi2lmp.exe <ROOTNAME> {-print #} {-class #} {-frc FRC_FILE} {-ignore} {-nocenter} {-shift # # #}— <ROOTNAME>写自己的.car文件以及.mdf文件名,两类型文件名字一般是一致的— -print == -p【0 只输出错误信息,1 最小输出(默认)2 冗长输出(通常用于开发和检查新数据文件的一致性),3 更详细输出(额外的debug信息)】

2021-05-18 11:33:02 3982

原创 Windows10使用Python调用LAMMPS模块

前提紧要根据lammps官方描述,如果需要使用lammps模块需要构建名为liblamps.dll的共享库和lammps.py模块。需要lammps指令等http://packages.lammps.org/windows.html,安装包下载地址这里我下载的是lammps-64bit-latest.exehttps://rpm.lammps.org/windows/64bit/...

2021-03-13 14:42:02 2085 3

原创 f2py of numpy

研究生课题需要,于是学起了fortran,但由于语言有点老遂发现numpy里的f2py可以将fortran封装成python可以调用的模块,于是走上了一条不归路。。。环境: Python3.7.4 Numpy1.16.5 MinGW-w64(想用Intel Visual Fortran来编译然而至今没有解决找不到编译器的问题)强烈diss Codeblocks自带的MinGW,那简直是bug满天飞。建议卸载Codeblocks(反正有那么多好的IDE)自己手动安装MinGW64(一定要是64位),将

2021-02-23 12:07:04 347

原创 蓝桥杯 历年真题 观光铁路(JAVA实现非正解瞎写骗分)

问题描述  跳蚤国正在大力发展旅游业,每个城市都被打造成了旅游景点。  许多跳蚤想去其他城市旅游,但是由于跳得比较慢,它们的愿望难以实现。这时,小C听说有一种叫做火车的交通工具,在铁路上跑得很快,便抓住了商机,创立了一家铁路公司,向跳蚤国王请示在每两个城市之间都修建铁路。  然而,由于小C不会扳道岔,火车到一个城市以后只能保证不原路返回,而会随机等概率地驶向与这个城市有铁路连接的另外一个城...

2019-03-23 15:38:03 2283 1

原创 HDU 5973 Wrestling Match

Description:Nowadays, at least one wrestling match is held every year in our country. There are a lot of people in the game is "good player”, the rest is "bad player”. Now, Xiao Ming is referee of t...

2018-09-21 19:49:42 207

原创 AIZU 2170 Marked Ancestor

Problem F:You are given a tree T that consists of N nodes. Each node is numbered from 1 to N, and node 1 is always the root node of T. Consider the following two operations on T:M v: (Mark) Mark n...

2018-08-29 16:21:59 277

转载 【转】AIZU 0121 Seven Puzzle

原博链接 https://blog.csdn.net/acm_10000h/article/details/40896075题目链接 http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0121题意:7数码问题。在2×4的棋盘上,摆有7个棋子,每个棋子上标有1至7的某一数字,不同棋子上标的数字不相同。棋盘上还有一个空格(用0表示...

2018-08-11 11:39:10 287

原创 Aizu 0033 Ball

题面:玉図のように二股に分かれている容器があります。1 から 10 までの番号が付けられた10 個の玉を容器の開口部 A から落とし、左の筒 B か右の筒 C に玉を入れます。板 D は支点 E を中心に左右に回転できるので、板 D を動かすことで筒 B と筒 C のどちらに入れるか決めることができます。開口部 A から落とす玉の並びを与えます。それらを順番に筒 B 又は筒 Cに入れて...

2018-08-03 17:00:38 197

原创 Codeforces Round #499 (Div. 2) C Fly

Chat: 本来想随便看看题写一下, 发现自己现在理解能力跌倒谷底orz。 看了好久才看懂这个题是个什么意思。。。Description:Natasha is going to fly on a rocket to Mars and return to Earth. Also, on the way to Mars, she will land on n−2n−2 intermediate...

2018-07-27 16:58:17 253

原创 CodeForces 976B Lara Croft and the New Game

Description:You might have heard about the next game in Lara Croft series coming out this year. You also might have watched its trailer. Though you definitely missed the main idea about its plot, so l...

2018-05-04 23:38:03 798

原创 CodeForces 975C Valhalla Siege

Description:Ivar the Boneless is a great leader. He is trying to capture Kattegat from Lagertha. The war has begun and wave after wave Ivar's warriors are falling in battle.Ivar has nn warriors, he pl...

2018-05-04 23:29:29 427

原创 CodeForces 975A Aramic script

Description:In Aramic language words can only represent objects.Words in Aramic have special properties: A word is a root if it does not contain the same letter more than once. A root and all its pe...

2018-05-04 23:17:06 264

原创 CodeForces 964B Messages

题目大意:已知你会收到n封信。在某时刻t时会来一封或多封,每封信初始价值为a,从第t+1开始每时刻的价值减少b(最终价值可以为负数)。 同时银行有一种收益为c * 收到但是没有读过的信的数目。我们可以选择每封信何时读只要保证收益最大即可。解题思路:一开始思路想的是比较c和b的大小, c大的话就全部放在最后读,否则就立即读。 但是这样写全部最后读就很麻烦。 我们可以换一种思路, 反正要么是立即读要么...

2018-05-04 23:01:34 203

原创 Codeforces 964A Splits

最近写了几场cf的题, 各种浑水摸鱼过一道就跑导致分数低到令人发指,也并不知道自己都写了些什么, 遂总结一下这几次的题目回忆一下。                                                                                                                                       ...

2018-05-04 22:48:56 292

原创 HDU 2896 病毒侵袭

Description         当太阳的光辉逐渐被月亮遮蔽,世界失去了光明,大地迎来最黑暗的时刻。。。。在这样的时刻,人们却异常兴奋——我们能在有生之年看到500年一遇的世界奇观,那是多么幸福的事儿啊~~ 但网路上总有那么些网站,开始借着民众的好奇心,打着介绍日食的旗号,大肆传播病毒。小t不幸成为受害者之一。小t如此生气,他决定要把世界上所有带病毒的网站都找出来。当然,谁都知道这是不...

2018-03-22 00:01:48 280

原创 ZOJ 3261 Connections in Galaxy War

Description: In order to strengthen the defense ability, many stars in galaxy allied together and built many bidirectional tunnels to exchange messages. However, when the Galaxy War began, some tunnel...

2018-02-27 22:50:46 242

原创 POJ 3026 Borg Maze

Chat: 最近进入考试周了。。。 写题速度越来越慢, 考完试之后准备继续投入战斗~ Description:The Borg is an immensely powerful race of enhanced humanoids from the delta quadrant of the galaxy. The Borg collective is the term used

2018-01-09 11:41:22 261

原创 POJ 3617 Best Cow Line

Description:FJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annual"Farmer of the Year" competition. In this contest every farmer arranges his cows in a line and herds them past the jud

2017-12-27 23:27:50 222

原创 POJ 3468 A Simple Problem with Integers

Description:You have N integers, A1, A2, ... ,AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The oth

2017-12-18 23:07:32 146

原创 HDU 1754 I Hate It

题目描述:很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Input 本题目包含多组测试,请处理到文件结束。 在每个测试的第一行,有两个正整数 N 和 M ( 0学生ID编号分别从1

2017-12-18 22:47:45 177

原创 HDU 1166 敌兵布阵

题目描述:C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干人手,但这些都逃不过C国的监视。中央情报局要研究敌人究

2017-12-18 22:43:14 233

原创 EOJ 3441 唐纳德与子串 (Easy)

题目大意:子串的定义是在一个字符串中连续出现的一段字符。这里,我们使用 s[l…r] 来表示 s 字符串从 l 到 r(闭区间)的子串。在本题中,字符串下标从0 开始。显然,对于长度为 n 的字符串共有 n(n+1)2 个子串。对于一个给定的字符串 s,唐纳德给出q 次询问,第 i 次询问包括三个参数 li,ri,zi

2017-12-10 11:48:38 307

原创 EOJ 3452 唐纳德先生和假骰子

题目描述:在进行某些桌游,例如 UNO 或者麻将的时候,常常会需要随机决定从谁开始。骰子是一种好方案。普通的骰子有六个面,分别是一点、二点、三点、四点、五点、六点,六面向上的概率相同。由于骰子只能产生六种情况,而实际桌游时,却常常有三到四人,所以,我们在掷骰子时,常常采用两颗骰子,这个「随机的选择」就由骰子向上点数之和直接决定。我们采用这么一种方案,将向上点数之和对 p(人数)

2017-12-10 11:42:38 939

原创 POJ 2386 Lake Counting

Description:Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares. Each square conta

2017-12-10 11:32:21 175

原创 POJ 1852 Ants

Description:An army of ants walk on a horizontal pole of length l cm, each with a constant speed of 1 cm/s. When a walking ant reaches an end of the pole, it immediatelly falls off it. When two

2017-12-10 10:58:32 176

原创 CodeForces 883E Field of Wonders

Description:Polycarpus takes part in the "Field of Wonders" TV show. The participants of the show have to guess a hidden word as fast as possible. Initially all the letters of the word are hid

2017-11-26 20:56:17 448

原创 HDU 1875 畅通工程再续

题目描述:相信大家都听说一个“百岛湖”的地方吧,百岛湖的居民生活在不同的小岛中,当他们想去其他的小岛时都要通过划小船来实现。现在政府决定大力发展百岛湖,发展首先要解决的问题当然是交通问题,政府决定实现百岛湖的全畅通!经过考察小组RPRush对百岛湖的情况充分了解后,决定在符合条件的小岛间建上桥,所谓符合条件,就是2个小岛之间的距离不能小于10米,也不能大于1000米。当然,为了节省资金,只

2017-11-26 20:47:29 215

原创 CodeForces 892B Wrath

Description:Hands that shed innocent blood!There are n guilty people in a line, thei-th of them holds a claw with length Li. The bell rings and every person kills some of people in front

2017-11-25 18:58:11 284

原创 CodeForces 893C Rumor

Description:Vova promised himself that he would never play computer games... But recently Firestorm — a well-known game developing company — published their newest game, World of Farcraft, and

2017-11-25 18:15:46 286

原创 ZOJ 1586 QS Network

Description:Sunny Cup 2003 - Preliminary RoundApril 20th, 12:00 - 17:00 Problem E: QS NetworkIn the planet w-503 of galaxy cgb, there is a kind of intelligent creature named QS. QScommun

2017-11-25 17:51:36 180

原创 POJ 2421 Constructing Roads

Description:There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each other. We say two village A and B are connected

2017-11-25 17:27:34 323

原创 CodeForces 893B Beautiful Divisors

Description:Recently Luba learned about a special kind of numbers that she calls beautiful numbers. The number is called beautiful iff its binary representation consists ofk + 1 consecutiv

2017-11-25 16:49:56 364

原创 CodeForces 893A Chess For Three

Description:Alex, Bob and Carl will soon participate in a team chess tournament. Since they are all in the same team, they have decided to practise really hard before the tournament. But it's

2017-11-25 11:50:26 429

原创 CodeForces 888D Almost Identity Permutations

Description:A permutation p of size n is an array such that every integer from 1 to n occurs exactly once in this array.Let's call a permutation an almost identity permutation iff there

2017-11-21 16:14:42 406

原创 CodeForces 888C Dominant Character

Description:You are given a string s consisting of lowercase Latin letters. Characterc is called k-dominant iff each substring ofs with length at least k contains this character c.You

2017-11-19 23:14:44 419

原创 CodeForces 888B Buggy Robot

Description:Ivan has a robot which is situated on an infinite grid. Initially the robot is standing in the starting cell(0, 0). The robot can process commands. There are four types of comman

2017-11-19 23:01:21 545

原创 CodeForces 888A Local Extrema

Description:You are given an array a. Some element of this arrayai is alocal minimum iff it is strictly less than both of its neighbours (that is,ai ai - 1 andai ai + 1). Also the elem

2017-11-19 21:32:18 400

原创 POJ 2031 Building a Space Station

Description:You are a member of the space station engineering team, and are assigned a task in the construction process of the station. You are expected to write a computer program to complete t

2017-11-18 23:41:50 168

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除