Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@40sjg34si
40sjg34si / B站电影排名.ipynb
Last active July 26, 2020 14:24
Playaround/B站电影排名.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@40sjg34si
40sjg34si / Read in csv file with multiple tables.ipynb
Last active May 27, 2020 10:30
Read in csv file with multiple tables.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@40sjg34si
40sjg34si / B站合集视频弹幕分布.ipynb
Last active June 30, 2020 09:09
Playaround/B站合集视频弹幕分布.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
===================================5260 P1 云霄飞车杀人事件
===================================5256 P2 董事长千金绑架事件
=================================5097 P3 偶像密室杀人事件
=======================3686 P4 大都会暗号地图事件
=========================4012 P5 新干线大爆破事件
==================================5179 * P6 情人节杀人事件
=============================4526 P7 每月一件礼物威胁事件
========================3852 P8 美术馆杀人事件
==================2970 P9 天下第一夜祭杀人事件
=====================3374 P10 足球选手恐吓事件
=============================12151 P1 E001.100711.开跑啦(嘉宾:李孝利、黄静茵)
===============6925 P2 E002.100718.智孝驾到(嘉宾:具荷拉、李天熙)
============5915 P3 E003.100725.赢得奖金竞赛(嘉宾:具荷拉、李天熙)
==============6508 * P4 E004.100801.科学馆奖金比拼竞赛(上)(嘉宾:尼坤、Jessica)
========4249 P5 E005.100808.科学馆奖金比拼竞赛(下)(嘉宾:尼坤、Jessica)
======3733 P6 E006.100815.R球赢得竞赛(嘉宾:se7en、孙丹菲、金申英)
============6002 P7 E007.100822.最初的追击战(嘉宾:郑容和、赵权、咸恩静)
===============6958 * P8 E008.100829.王鼻子的诞生(嘉宾:宋茜、朴俊奎、李淮)
============5835 P9 E009.100905.游乐园Race(嘉宾:李弘基、申凤善、金秀路)
==============6566 * P10 E010.100912.周一一起喝咖啡(嘉宾:车太贤、尹世雅)
@40sjg34si
40sjg34si / deduction.py
Last active July 24, 2020 17:22
杨超越吧2018刑侦推理题Python解法
from collections import Counter
from itertools import product
def validate(ans):
cnt, ans = Counter(ans), ('',) + ans
qs = {2: ({'A': 'C', 'B': 'D', 'C': 'A', 'D': 'B'}, lambda x: x == ans[5]),
3: ({'A': 3, 'B': 6, 'C': 2, 'D': 4}, lambda x: all(ans[v] != ans[x] for v in {3, 6, 2, 4} if v != x)),
4: ({'A': (1, 5), 'B': (2, 7), 'C': (1, 9), 'D': (6, 10)}, lambda x: ans[x[0]] == ans[x[1]]),
@40sjg34si
40sjg34si / SPAV algorithm implementation.ipynb
Last active August 11, 2020 21:46
SPAV algorithm implementation (Python代码实现)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@40sjg34si
40sjg34si / rerank ads and contents.ipynb
Last active February 8, 2021 18:23
一个简单的 dp,排序内容和广告
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.