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
import sys | |
def header_to_list(s): | |
header_level = 0 | |
for c in s: | |
if c == '#': | |
header_level += 1 | |
else: | |
break | |
ret = [] |
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
import collections | |
import random | |
import bisect | |
BOL = '\\^' | |
EOL = '\\$' | |
def main(): | |
word_word_cnt = collections.defaultdict(lambda: collections.defaultdict(int)) | |
reversed_word_word_cnt = collections.defaultdict(lambda: collections.defaultdict(int)) |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<link rel="stylesheet" href="print.css"> | |
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
import subprocess | |
import pipes | |
import multiprocessing | |
CASE = 150 | |
TL = 2.0 | |
def execute_case(seed): | |
input_file_path = f'tools/in/{seed:04}.txt' | |
output_file_path = f'tools/out/{seed:04}.txt' | |
with open(input_file_path) as fin: |
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
datetime | temperature | humidity | |
---|---|---|---|
2024/7/20 0:00:41 | 21.8 | 65 | |
2024/7/20 0:05:41 | 21.8 | 65 | |
2024/7/20 0:10:41 | 21.8 | 65 | |
2024/7/20 0:15:41 | 21.2 | 65 | |
2024/7/20 0:20:41 | 21.8 | 66 | |
2024/7/20 0:25:41 | 21.8 | 66 | |
2024/7/20 0:30:41 | 21.8 | 67 | |
2024/7/20 0:35:41 | 21.8 | 67 | |
2024/7/20 0:40:41 | 21.8 | 67 |