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
#!/usr/bin/env python3 | |
""" | |
Cython test | |
""" | |
from collections import defaultdict | |
import sys | |
from cpython cimport array | |
import array as pyarray | |
sys.setrecursionlimit(10**6) |
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
def split(node, k): | |
nonlocal ret_left, ret_right | |
"split tree into [0, k) and [k, n)" | |
# dp("split: node, k", node, k) | |
push(node) | |
if not node: | |
ret_left = 0 | |
ret_right = 0 | |
return | |
if k <= sizes[lefts[node]]: |
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
Traceback (most recent call last): | |
File "/usr/local/lib/python3.7/site-packages/numba/core/lowering.py", line 1183, in lower_expr | |
impl = self.context.get_function("static_getitem", signature) | |
File "/usr/local/lib/python3.7/site-packages/numba/core/base.py", line 570, in get_function | |
return self.get_function(fn, sig, _firstcall=False) | |
File "/usr/local/lib/python3.7/site-packages/numba/core/base.py", line 572, in get_function | |
raise NotImplementedError("No definition for lowering %s%s" % (key, sig)) | |
NotImplementedError: No definition for lowering static_getitem(OptionalType(UniTuple(int64 x 2)), Literal[int](1)) -> int64 | |
During handling of the above exception, another exception occurred: |
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
N = int(input()) | |
S = [input(), input(), input(), input(), input()] | |
PATTERNS = """ | |
####.##.##.#### | |
.#.##..#..#.### | |
###..#####..### | |
###..####..#### | |
#.##.####..#..# | |
####..###..#### |
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
他人の言葉との付き合い方 | |
プロジェクトを進める上で、露出を高めることが有用なことがある。 | |
しかし露出が高まると、有害な反応をする人に遭遇する確率も上がる。これは不可避。 | |
なので、有害反応に対するスルー力をつける必要がある。 | |
プロジェクトを応援する人と、失敗を願う人がいる | |
「人の不幸を願う人」の相手をする時間はない | |
自分のプロジェクトに全力投球して、成功するのが最善 |
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
In [15]: listA = [0, 1] | |
In [16]: listB = listA | |
In [17]: from copy import copy | |
In [18]: listC = copy(listA) | |
In [19]: listD = listA[:] |
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
word ranking | |
item 709 | |
state 524 | |
paper 423 | |
path 299 | |
group 235 | |
piece 167 | |
stroke 160 | |
point 158 | |
position 136 |
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
737 | |
= | |
= |
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
0 "{\"type\":\"touchmove\",\"touchLen\":1,\"chTouchLen\":1,\"radius\":0,\"touchType\":\"stylus\"}" | |
1 "{\"type\":\"touchmove\",\"touchLen\":1,\"chTouchLen\":1,\"radius\":0,\"touchType\":\"stylus\"}" | |
2 "{\"type\":\"touchmove\",\"touchLen\":1,\"chTouchLen\":1,\"radius\":0,\"touchType\":\"stylus\"}" | |
3 "{\"type\":\"touchmove\",\"touchLen\":1,\"chTouchLen\":1,\"radius\":0,\"touchType\":\"stylus\"}" | |
4 "{\"type\":\"touchmove\",\"touchLen\":1,\"chTouchLen\":1,\"radius\":0,\"touchType\":\"stylus\"}" | |
5 "{\"type\":\"touchmove\",\"touchLen\":1,\"chTouchLen\":1,\"radius\":0,\"touchType\":\"stylus\"}" | |
6 "{\"type\":\"touchmove\",\"touchLen\":1,\"chTouchLen\":1,\"radius\":0,\"touchType\":\"stylus\"}" | |
7 "{\"type\":\"touchmove\",\"touchLen\":1,\"chTouchLen\":1,\"radius\":0,\"touchType\":\"stylus\"}" | |
8 "{\"type\":\"touchmove\",\"touchLen\":1,\"chTouchLen\":1,\"radius\":0,\"touchType\":\"stylus\"}" | |
9 "{\"type\":\"touchmove\",\"touchLen\":1,\"chTouchLen\":1,\"radius\":0,\"touchType\":\"stylus\"}" |
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
0 "{\"type\":\"touchmove\",\"touchLen\":2,\"chTouchLen\":2,\"radius\":20.843505859375,\"touchType\":\"direct\"}" | |
1 "{\"type\":\"touchmove\",\"touchLen\":2,\"chTouchLen\":2,\"radius\":20.843505859375,\"touchType\":\"direct\"}" | |
2 "{\"type\":\"touchmove\",\"touchLen\":2,\"chTouchLen\":2,\"radius\":20.843505859375,\"touchType\":\"direct\"}" | |
3 "{\"type\":\"touchmove\",\"touchLen\":2,\"chTouchLen\":2,\"radius\":20.843505859375,\"touchType\":\"direct\"}" | |
4 "{\"type\":\"touchmove\",\"touchLen\":2,\"chTouchLen\":2,\"radius\":20.843505859375,\"touchType\":\"direct\"}" | |
5 "{\"type\":\"touchmove\",\"touchLen\":2,\"chTouchLen\":2,\"radius\":20.843505859375,\"touchType\":\"direct\"}" | |
6 "{\"type\":\"touchmove\",\"touchLen\":2,\"chTouchLen\":2,\"radius\":20.843505859375,\"touchType\":\"direct\"}" | |
7 "{\"type\":\"touchmove\",\"touchLen\":2,\"chTouchLen\":2,\"radius\":20.843505859375,\"touchType\":\"direct\"}" | |
8 "{\"type\":\"touchmove\",\"touchLen\":2,\"chTouchLen\":2,\"radius\":20.843505859375,\"touchType\":\"direct\"}" | |
9 "{\"t |