This file contains hidden or 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
{"a":"qwe"} |
This file contains hidden or 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
var con = [ | |
['开始阶段', '结束阶段', '造成伤害时', '受到伤害时'], | |
['你弃置判定区的一张牌', '你翻回正面', '令一名其他角色交给你一张牌', '令任意角色'], | |
['回复1点体力', '摸2张牌', '失去1点体力', '弃2张牌'] | |
]; | |
var win = [ | |
[{cur: 1, weight: 1}, {cur: 1, weight: 1}, {cur: 1, weight: 0.5}, {cur: -1, weight: 1}], | |
[{suit: 1, target: 1, win: 0}, {suit: 1, target: 1, win: 0}, {suit: 0, target: -1, win: 2}, {suit: 0, target: 0, win: 0}], | |
[{sign: 1, win: 2}, {sign: 1, win: 2}, {sign: -1, win: 2}, {sign: -1, win: 2}] | |
]; |
This file contains hidden or 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
void Multiply(SpareMatrix<T> *a, SpareMatrix<T> *b, SpareMatrix<T> *c){ | |
int sum, ai = 0, tmpai, di = 0, anrow, ancol, dnrow, dncol; | |
SpareMatrix<T> *d = new SpareMatrix<T>; | |
QuickTransMat<T>(b, d); //把b转置变为d | |
c->n = a->n; //c是结果矩阵,结果矩阵为b->m行,a->n列 | |
c->m = b->m; | |
c->t = 0; //初始情况,c内没有非零元素 | |
if (a->n == b->m){ //如果乘法成立 | |
for (int ia = 0; ia < a->m; ia++){ //遍历a的每一行,ai是a的行号 | |
tmpai = ai; //ai初始为0,指向a的第一个非零元素(ai是下标),让tmpai 等于 ai |
This file contains hidden or 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<string> | |
#include<time.h> | |
#include "bigInt.h" | |
using namespace std; | |
BigInt::BigInt(){ //构造函数 | |
head = tail = temp = NULL; | |
symbol = '+'; | |
length = 0; |
This file contains hidden or 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
// ==UserScript== | |
// @name RenRen Beautifier | For V7 | |
// @namespace http://www.soulran.com/ | |
// @version 0.11 | |
// @description Remove ad and something I dislike. | |
// @match http://*.renren.com/* | |
// @run-at document-end | |
// @copyright 2013+, Masquevil | |
// ==/UserScript== |