Skip to content

Instantly share code, notes, and snippets.

@40sjg34si
40sjg34si / SPAV algorithm implementation.ipynb
Last active Aug 11, 2020
SPAV algorithm implementation (Python代码实现)
View SPAV algorithm implementation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@40sjg34si
40sjg34si / deduction.py
Last active Jul 24, 2020
杨超越吧2018刑侦推理题Python解法
View deduction.py
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]]),
View runningman.txt
=============================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.周一一起喝咖啡(嘉宾:车太贤、尹世雅)
View conan.txt
===================================5260 P1 云霄飞车杀人事件
===================================5256 P2 董事长千金绑架事件
=================================5097 P3 偶像密室杀人事件
=======================3686 P4 大都会暗号地图事件
=========================4012 P5 新干线大爆破事件
==================================5179 * P6 情人节杀人事件
=============================4526 P7 每月一件礼物威胁事件
========================3852 P8 美术馆杀人事件
==================2970 P9 天下第一夜祭杀人事件
=====================3374 P10 足球选手恐吓事件
@40sjg34si
40sjg34si / B站合集视频弹幕分布.ipynb
Last active Jun 30, 2020
Playaround/B站合集视频弹幕分布.ipynb
View 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
Read in csv file with multiple tables.ipynb
View 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 Jul 26, 2020
Playaround/B站电影排名.ipynb
View B站电影排名.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 微博喷人助手.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.