Skip to content

Instantly share code, notes, and snippets.

View zimpha's full-sized avatar

Xi Lin zimpha

View GitHub Profile
const hashes = [
"894242 0x7c4511cb7c699f4825e7425d3ff78453f654947b9136a046d6796c6a8521c248",
"894243 0x36ddf814a8ebc4d9513f47ce1c9b79a9521e21d660ea3a8ea83417adb9acec60",
"894244 0x7089b4031c2560346416f373e427902989d07b7f087870558a5f6be4d77b548d",
"894245 0x8092de34631ffb689b836532065431120315631e08d0798aef3c85ce66698da6",
"894246 0xa2040acff08402210b31d5dd704778f1878e469a5a11c466dc2bcb466073eff5",
"894247 0x780d4db8cc0e97c5076b0dca4671b60d1a0e582f9dddd824e3f0a506b64e941a",
"894248 0x4874f9ed9ef123e77909c87b9041f251446cb325052780e3c5928de1428dc3a4",
"894249 0x88359f28e4017609cd7475c5f7b5d83a434ab2aa83d1039d4e44802f2b68eeab",
"894250 0xae4bbaf80100ad7028d40428d6a3ec4d225d36451f0f7e9203724aec143b0998",
BlockPerBatch[1] TxPerBlock[1] BytesPerTx[100] TotalBytes[104] CalldataSize[708] EstimateGas[146368] GasUsed[146368]
BlockPerBatch[1] TxPerBlock[1] BytesPerTx[200] TotalBytes[204] CalldataSize[804] EstimateGas[147990] GasUsed[147990]
BlockPerBatch[1] TxPerBlock[1] BytesPerTx[300] TotalBytes[304] CalldataSize[900] EstimateGas[149636] GasUsed[149636]
BlockPerBatch[1] TxPerBlock[1] BytesPerTx[400] TotalBytes[404] CalldataSize[996] EstimateGas[151257] GasUsed[151257]
BlockPerBatch[1] TxPerBlock[1] BytesPerTx[500] TotalBytes[504] CalldataSize[1092] EstimateGas[152879] GasUsed[152879]
BlockPerBatch[1] TxPerBlock[1] BytesPerTx[600] TotalBytes[604] CalldataSize[1188] EstimateGas[154501] GasUsed[154501]
BlockPerBatch[1] TxPerBlock[1] BytesPerTx[700] TotalBytes[704] CalldataSize[1284] EstimateGas[156123] GasUsed[156123]
BlockPerBatch[1] TxPerBlock[1] BytesPerTx[800] TotalBytes[804] CalldataSize[1412] EstimateGas[157879] GasUsed[157879]
BlockPerBatch[1] TxPerBlock[1] BytesPerTx[900] TotalBytes[904] CalldataSize[1508] Es
ChunkPerBatch[1] BlockPerChunk[1] TxPerBlock[1] BytesPerTx[100] TotalBytes[104] CalldataSize[580] EstimateGas[67423]
ChunkPerBatch[1] BlockPerChunk[1] TxPerBlock[1] BytesPerTx[200] TotalBytes[204] CalldataSize[676] EstimateGas[69086]
ChunkPerBatch[1] BlockPerChunk[1] TxPerBlock[1] BytesPerTx[300] TotalBytes[304] CalldataSize[772] EstimateGas[70750]
ChunkPerBatch[1] BlockPerChunk[1] TxPerBlock[1] BytesPerTx[400] TotalBytes[404] CalldataSize[868] EstimateGas[72402]
ChunkPerBatch[1] BlockPerChunk[1] TxPerBlock[1] BytesPerTx[500] TotalBytes[504] CalldataSize[964] EstimateGas[74053]
ChunkPerBatch[1] BlockPerChunk[1] TxPerBlock[1] BytesPerTx[600] TotalBytes[604] CalldataSize[1060] EstimateGas[75692]
ChunkPerBatch[1] BlockPerChunk[1] TxPerBlock[1] BytesPerTx[700] TotalBytes[704] CalldataSize[1156] EstimateGas[77356]
ChunkPerBatch[1] BlockPerChunk[1] TxPerBlock[1] BytesPerTx[800] TotalBytes[804] CalldataSize[1284] EstimateGas[79149]
ChunkPerBatch[1] BlockPerChunk[1] TxPerBlock[1] BytesPerTx[900] TotalBytes[904] Calld
{"index":1940,"amount":"0x12f70a854be6d40000","proof":["0xc3cb07edffcb8a542058a72e0b4849f8b81b83eafe103cfadc03b641fb60abdb","0xc3b33cf72981f938428b4930f7b93614923434c41da52b1284ec3f644d8c759b","0xed7841183c5d3f2dfbde9a18c9fd4567b406aa8406d4f5c0fe6b73428f6d4861","0xde3587a570b47fd122c40da3eba8383980aa8cc00d4cb6e25fbd7842e1ea7950","0x1017c4c6e81af6c31ba66109717422645ba3dfa9c6036eba3ebb8a11478ae501","0xf77bfcd7ce7cfb20938602a5c79e5659156b0507fe3efad18cdd3cbefc6b36c6","0xcc70ca0e3018608a3448fcd4824d84db35d39d87403efbf887c330719d98e3f4","0x6b1ec5376a5006e49181d0c35adfe40933bd2b2919faaadeadbd122d7541a42c","0xe3e14d841e8ee57f084d331145a0f307879d4ac589ce889617062cf0e04dd849","0xc21721cfe3cb33962ed2f48d573ba0dc8a91b378062f05816152507b39e7a65c","0x9103154d1a5ba227b14832ce13339777e04bea8a7bb32ca8b77961d3aa465740","0x6cdeaa6c5bbff3017769c316b27337d81b8f68877befc45dc2ea8184885250b0"]}
{"index":1222,"amount":"0x890db0b8","proof":["0x544d2fb60ad1fa6a87f66d8834ca833aeb19c37c30e59a5b1696df7c5904b6d5","0x6a2d82f06f076aa71382bc
@zimpha
zimpha / aaaa
Created December 5, 2017 14:50
#pragma GCC optimize("Ofast,no-stack-protector")
#pragma GCC target("avx")
#include <cstdio>
#include <cctype>
#define fin stdin
//FILE *fin = fopen("a.in", "r");
#define BUF_SIZE 1 << 16
@zimpha
zimpha / ZJP2016_A.cc
Last active February 4, 2020 09:44
ZJP2016
#include <bits/stdc++.h>
using namespace std;
int main() {
int T; cin >> T;
for (int _ = 0; _ < T; ++_ ) {
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << c << " " << b + d << endl;
cout << a << " " << b + d << endl;
#include <bits/stdc++.h>
using namespace std;
typedef long double flt;
const flt eps = 1e-10;
const int MAXN = 100;
int sgn(flt x) {
if (x < -eps) return -1;
else return x > eps;
}
#include <queue>
#include <cctype>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
using namespace std;
const int SIZE = 110;
const int inf = 100000;
const int dx[] = {0, 0, 1, -1};
#include <vector>
#include <string>
#include <cstdio>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
const int MAX=1440;
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
using namespace std;
const int MAXN=220;
const int inf=1e9;
int X[MAXN], Y[MAXN], B[MAXN];
int P[MAXN], Q[MAXN], C[MAXN];