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> | |
#include <iomanip> | |
using namespace std; | |
template<class T> | |
//三元组 | |
struct Trituple | |
{ | |
int row; | |
int col; |
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
:: This Batch file is used to install MSCOMM32 | |
:: | |
@echo off | |
echo CLAIM: MSCOMM32 is belong to Microsoft Corporation | |
echo. | |
echo This batch file is licensed under CC-BY-SA 3.0 | |
echo and is provided on an "AS IS" basis, use it on your own risk. | |
echo. | |
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
function [L,U,P]=LU_pivot(A) | |
% LU factorization with partial (row) pivoting | |
% K. Ming Leung, 02/05/03 | |
[n,n]=size(A); | |
L=eye(n); P=L; U=A; | |
for k=1:n | |
[pivot m]=max(abs(U(k:n,k))); | |
m=m+k-1; | |
if m~=k |
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
program NK1704; | |
var | |
st:array [1..1000] of char; | |
score:array [0..10] of integer; | |
i,tt,line:integer; | |
qq,ch:char; | |
procedure main; | |
var | |
i,j,th:integer; | |
a:array [1..10,1..2] of integer; |
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
Const | |
ch1:set of char=['/','-','X','1'..'9']; {记分的有效符号} | |
Var | |
pnt,k,i,j:byte; {(总计)击球次数的指针:p(oi)nt} | |
ans:integer; {得分:ans(wer)} | |
a:array[1..11,1..21]OF char; {存储每一次记分字符的数组:a(rray)} | |
ch:char; {用于读取输入文件的字符变量:ch(ar)} | |
Function chk(k,pnt:byte):byte; {求(总计)第n次击球击倒的个数:ch(ec)k} | |
Begin | |
Case a[k,pnt] OF |
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<stdio.h> | |
int ans=-1; | |
char k=0,i,a[21]; | |
short pts=-1; | |
char chk(short pts) | |
{ | |
char tmp; | |
switch(a[pts]) | |
{ | |
case 'X':tmp=10;break; |
NewerOlder