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<bits/stdc++.h> | |
#include <iostream> | |
#include <vector> | |
typedef long long LL; | |
using namespace std; | |
int read() | |
{ | |
int x = 0, f = 1; char c = getchar(); | |
while(!isdigit(c)) { if(c == '-') f = -1; c = getchar(); } | |
while(isdigit(c)) { x = (x << 3) + (x << 1) + (c ^ 48); c = getchar(); } |
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<bits/stdc++.h> | |
typedef long long LL; | |
using namespace std; | |
int read() | |
{ | |
int x = 0, f = 1; char c = getchar(); | |
while(!isdigit(c)) { if(c == '-') f = -1; c = getchar(); } | |
while(isdigit(c)) { x = (x << 3) + (x << 1) + (c ^ 48); c = getchar(); } | |
return x * f; | |
} |
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
D:\Program Files\nodejs\node.exe --nolazy -r ts-node/register --inspect-brk=36495 D:\Documents\GitHub\game_mahjong_server/game_server/src/app.ts | |
Debugger listening on ws://127.0.0.1:36495/82de9fb6-fbd1-4a5b-881b-9219b538152a | |
For help, see: https://nodejs.org/en/docs/inspector | |
game server is listening on localhost:9003 | |
game server is listening on 10000 | |
null: [47;34m SQL [00;34m select c.`value` from t_app_const c where c.`key`=? order by id desc limit 1 [40;32m | |
null: Array(1) ["room.config"] | |
null: [47;34m SQL [00;34m SELECT userid, name, roomid, seat_0_userId, seat_1_userId, seat_2_userId, seat_3_userId FROM t_users JOIN v_roominfo ON t_users.roomid = v_roominfo.id [40;32m | |
null: Array(0) [] | |
null: [47;34m SQL [00;34m SELECT DISTINCT roomid FROM t_users a WHERE a.account LIKE 'bot_%' AND roomid IS NOT NULL AND NOT EXISTS (SELECT 1 FROM t_users b WHERE b.account NOT LIKE 'bot_%' AND b.roomid = a.roomid); [40;32m |
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 <cstdio> | |
#include <vector> | |
#include <map> | |
using namespace std; | |
typedef long long LL; | |
const int N = int(1e5) + 9; | |
const int INF = 0x3fffffff; |
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 <vector> | |
using namespace std; | |
const int N = int(1e4) + 9; | |
vector<int> adj[N]; | |
int n, d; | |
int dfs(int u = 1, int p = -1) { | |
原文:https://vitalik.ca/general/2019/05/09/control_as_liability.html 譯稿:https://hackmd.io/s/Sk8-8jPn4 譯者:Minako Kojima 校對:Chih-Cheng Liang, Williams Lai
導讀:類似於 GDPR 的法律帶來了巨大了合規成本,讓用戶有自己的私鑰和數據所有權的區塊鏈應用(例如 Dapp),這類型區塊鏈不受隱私法規的監管,從而避免了巨額的合規成本。
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
# 作為負債的控制 Control as Liability | |
原文:[https://vitalik.ca/general/2019/05/09/control_as_liability.html](https://vitalik.ca/general/2019/05/09/control_as_liability.html) | |
譯稿:[https://hackmd.io/s/Sk8-8jPn4](https://hackmd.io/s/Sk8-8jPn4) | |
譯者:[Minako Kojima](https://twitter.com/TangFeihu) | |
校對:[Chih-Cheng Liang](https://twitter.com/chihchengliang), [Williams Lai](https://medium.com/@cla2srbchi) | |
導讀:類似於 GDPR 的法律帶來了巨大了合規成本,讓用戶有自己的私鑰和數據所有權的區塊鏈應用(例如 Dapp),這類型區塊鏈不受隱私法規的監管,從而避免了巨額的合規成本。 | |
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
/** Micro Mezz Macro Flation -- Overheated Economy ., Last Update: Nov. 7th 2014 **/ //{ | |
/** Header .. **/ //{ | |
#pragma comment(linker, "/STACK:36777216") | |
//#pragma GCC optimize ("O2") | |
#define LOCAL | |
//#include "testlib.h" | |
#include <functional> | |
#include <algorithm> | |
#include <iostream> |
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
pragma solidity ^0.4.21; | |
/// @author MinakoKojima (https://github.com/lychees) | |
contract DecentralizedExchange{ | |
address public owner; | |
mapping (address => bool) public admins; | |
struct Order { | |
address owner; |