This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#define MAXSIZE 20 | |
using namespace std; | |
template<typename Element> | |
class Queue | |
{ | |
private: | |
Element Data[MAXSIZE]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Iterative C program for merge sort */ | |
#include<stdlib.h> | |
#include<stdio.h> | |
/* Function to merge the two haves arr[l..m] and arr[m+1..r] of array arr[] */ | |
void merge(int arr[], int l, int m, int r); | |
// Utility function to find minimum of two integers | |
int min(int x, int y) { return (x<y)? x :y; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[tikz]{standalone} | |
\usepackage{newtxmath} | |
\usepackage{tikz} | |
\usetikzlibrary{decorations.pathmorphing} | |
\usetikzlibrary{shapes.geometric,positioning} | |
\begin{document} | |
\begin{tikzpicture} | |
[defsty/.style={circle ,fill=blue!50, minimum size=1cm}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import scipy.stats as ss | |
# Background Electric Potential, mV | |
Phi_0 = 318 | |
# Concentration of typical solution, mg/L | |
C = [0.2, 0.4, 0.8, 1.2, 1.6, 2.0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.cm as cm | |
import scipy.ndimage | |
# import matplotlib.mlab as mlab | |
def plot_fun(filename, strech): | |
# x, y, z = np.loadtxt(filename, | |
# dtype={'names': ('Type', 'Num1', 'Atom', 'Num2', 'x', 'y', 'z'), | |
# 'formats': ('|S4', np.float, '|S1', np.float, np.float, np.float, np.float)}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
https://www.patest.cn/contests/pat-b-practise/1072 | |
*/ | |
#include <iostream> | |
#include <set> | |
#include <string> | |
#include <vector> | |
using std::cin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import xlrd | |
import matplotlib.pyplot as plt | |
from scipy.interpolate import interp1d | |
path = 'Workbook1.xlsx' | |
workbook = xlrd.open_workbook(path) | |
sheet = workbook.sheet_by_index(0) | |
V_NaOH = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assume cs:code | |
data segment | |
db '1975','1976','1977','1978','1979','1980', '1981' | |
db '1982', '1983','1984', '1985','1986', '1987','1988' | |
db '1989','1990','1991','1992','1993','1994','1995' | |
;以上是表示21年的21个字符串 | |
dd 16,22,382,1356,2390,8000,16000,24486,50065,97479 | |
dd 140417,197514,345980,590827,803530,118300,1843000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;返回结果 dx=结果高16位,ax=结果低16位,cx=余数 | |
assume cs:code, ss:stack | |
stack segment | |
dd 10h dup(0) | |
stack ends | |
code segment | |
start: | |
mov ax, stack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assume cs:code, ss:stack, ds:data | |
data segment | |
dd 10h dup (0) | |
data ends | |
stack segment | |
dd 10h dup (0) | |
stack ends |
OlderNewer