03 2019 档案

摘要:定价两次-同一事件在确认前再次发生 改价失败-同一事件再次发生前就完成了流程 多人支付,总量不足-异步调用的问题,没能区别总成交量=目前已经完成的成交量+已经允许,但还没有callback的成交量,忽视了后面这一部分(Improper Check on Ether) 没有在异步调用时区别身份-异步调 阅读全文
posted @ 2019-03-27 11:52 雪溯 阅读(135) 评论(0) 推荐(0) 编辑
摘要:核心数据结构: core.types.transaction.go Transaction.data 辅助数据结构 core/tx_list.go txList txList.txs txSortedMap txSortedMap.index nonceHeap 类似的结构,txPricedList 阅读全文
posted @ 2019-03-22 13:46 雪溯 阅读(330) 评论(0) 推荐(0) 编辑
摘要:A: js指令转化为新transaction 在web3上操作流程 1. import to web3 2. connect to peers 3. read local key store 4. decrypt local key store 5. create a transaction obj 阅读全文
posted @ 2019-03-21 12:36 雪溯 阅读(385) 评论(0) 推荐(0) 编辑
摘要:首先从共识引擎-Engine开始记录 Engine是一个独立于具体算法的共识引擎接口 Author(header) (common.Address, error) 返回打包header对应的区块的矿工地址 VerifyHeader(chain ChainReader, header, seal bo 阅读全文
posted @ 2019-03-20 15:01 雪溯 阅读(306) 评论(0) 推荐(0) 编辑
摘要:1. 整体概览 makefile CANDY: .PHONY: geth android ios geth-cross swarm evm all test clean 已知phony 目标并非是由其它文件生成的实际文件,make 会跳过隐含规则搜索。这就是声明phony 目标会改善性能的原因,即使 阅读全文
posted @ 2019-03-16 20:43 雪溯 阅读(619) 评论(0) 推荐(0) 编辑
摘要:1. 基本组成组成元素: 关键字,标识符,常量,字符串,符号 关键字列表: break;default;func;interface;select;case;defer;go;map;struct;chan;else;goto;package;switch;const;fallthrough;if; 阅读全文
posted @ 2019-03-16 11:40 雪溯 阅读(175) 评论(0) 推荐(0) 编辑
摘要:题目 https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2726 题意 飞机,一个起飞的跑道,两个降落的跑道。每个时刻首先两个跑道降落一些飞机, 阅读全文
posted @ 2019-03-14 09:33 雪溯 阅读(121) 评论(0) 推荐(0) 编辑
摘要:题目 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2075 题意 n皇后类似的n(n<=5000)车,每个车所在的行列上不能有其它车,n*n棋盘放n个车 阅读全文
posted @ 2019-03-05 19:44 雪溯 阅读(129) 评论(0) 推荐(0) 编辑
摘要:题目 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2674 题意 n个正整数,尽量均匀地把它们分成严格递增序列。要求序列个数最小 思路 明显,序列个数就 阅读全文
posted @ 2019-03-05 19:01 雪溯 阅读(112) 评论(0) 推荐(0) 编辑
摘要:题目 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2674 题意 有严格下降的n条线段,长度都为w,第i条线段起点xi,终点xi + w,高度yi,现在 阅读全文
posted @ 2019-03-04 15:18 雪溯 阅读(173) 评论(0) 推荐(0) 编辑
摘要:题目 https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2795 题意 x * y的巧克力,问能不能恰好切成n份(只能整数切),每块大小恰好ai 阅读全文
posted @ 2019-03-04 08:38 雪溯 阅读(155) 评论(0) 推荐(0) 编辑
摘要:题目 https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2255 题意 n个任务,允许时间区间为[ri, di](ri , di <= 2000 阅读全文
posted @ 2019-03-03 22:19 雪溯 阅读(149) 评论(0) 推荐(0) 编辑
摘要:题目 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1846 题意 n个数字按照字符串方式直接组合成大数字,问最大组合成多少 思路 排序 感想 1. 因为 阅读全文
posted @ 2019-03-03 20:50 雪溯 阅读(135) 评论(0) 推荐(0) 编辑
摘要:题目 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1323 题意 长方形l * w,给出长方形中间那条线上n个圆的圆心c和半径r,选取最少数目的圆覆盖长 阅读全文
posted @ 2019-03-02 22:25 雪溯 阅读(107) 评论(0) 推荐(0) 编辑
摘要:题目 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1281 题意 问字符串a能否是字符串b的子序列 思路 明显,计数对的上就行 感想 因为忘了break 阅读全文
posted @ 2019-03-02 21:31 雪溯 阅读(98) 评论(0) 推荐(0) 编辑
摘要:题目 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=0&problem=1911 题意 m*n的矩形巧克力,要切成1*1,不能一次切两块,问多少下切完 阅读全文
posted @ 2019-03-02 21:17 雪溯 阅读(80) 评论(0) 推荐(0) 编辑
摘要:题目 https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1603 题意 问使m个n长碱基序列汉明码最小的序列 思路 明显,取最频繁的 代码 #i 阅读全文
posted @ 2019-03-02 20:47 雪溯 阅读(81) 评论(0) 推荐(0) 编辑
摘要:题目 https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1214 题意 问字符串a能否是字符串b经过某种替换+移位密码的密文 思路 明显,计数对 阅读全文
posted @ 2019-03-01 17:23 雪溯 阅读(105) 评论(0) 推荐(0) 编辑
摘要:题目 https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1984 题意 按顺序给出平面n个点,每个点上都有重物,一次只能按顺序拿重量不超过c的重 阅读全文
posted @ 2019-03-01 16:28 雪溯 阅读(155) 评论(0) 推荐(0) 编辑
摘要:题目 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1800 题意 n(n < 1000)个节点m条边的无向无环无重边图,最小顶点覆盖的同时要尽量让只有一 阅读全文
posted @ 2019-03-01 14:55 雪溯 阅读(108) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示