Skip to content

Instantly share code, notes, and snippets.

2011/9/30 62 0.19
2011/8/18 20 0.05
2011/11/30 6 0.68
2011/6/7 34 0.03
2011/6/7 1883 0.19
2011/8/28 1877 0.07
2011/8/18 6 0.37
2011/10/5 10 0.14
2011/8/18 3 0.45
2011/8/18 19 0.07
@gghatano
gghatano / Dockerfile
Last active December 14, 2021 07:28
atcoderで戦う環境
FROM python:3.8
RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
&& apt-get -y install git iproute2 procps lsb-release gdb\
&& apt-get install -y sudo wget curl vim
RUN cd /tmp \
&& git clone https://github.com/atcoder/ac-library.git
#include <iostream>
#include <vector>
#include <queue>
#include <cstring>
using namespace std;
typedef int FLOW; // フローを表す型、今回は int 型
const int MAX_V = 100; // グラフの最大ノード数
const FLOW INF = 100000000; // 十分大きい値
@gghatano
gghatano / data.csv
Last active February 6, 2020 02:56
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 6 columns, instead of 2 in line 9.
column,key,value,task_name,time,id
,削除された列の割合,0.1111111111111111,example,2020-01-08 05:07:54.770,example_20200108050754770
,削除された列の割合,0.1111111111111111,example,2020-01-08 06:05:46.747,example_20200108060546747
,削除された列の割合,0.1111111111111111,example,2020-01-09 10:28:11.843,example_20200109102811843
patient_id,特定失敗率,100,reid_test_config_making,2020-01-08 06:30:36.772,reid_test_config_making_20200108063036772
"gender,date_of_birth,medical_institution_number",kの最小値,10,reid_test_config_making,2020-01-08 06:30:36.772,reid_test_config_making_20200108063036772
"gender,date_of_birth,medical_institution_number",kの平均値,91,reid_test_config_making,2020-01-08 06:30:36.772,reid_test_config_making_20200108063036772
"gender,date_of_birth,medical_institution_number",kの最大値,99,reid_test_config_making,2020-01-08 06:30:36.772,reid_test_config_making_20200108063036772
"gender,date_of_birth,medical_institution_number",kの目標値,3,reid_test_config_making,2020-01-08 06:30:36.772,reid_test_config_making_20200108063036772
height,最小のbinに含まれる人
@gghatano
gghatano / image_convert.bash
Created November 7, 2019 04:06
chromeでスクショした地図画像をいい感じにリサイズして切り出したり変換したりした
dir=$(dirname $0)
if [ -e "$dir/converted_images" ] ; then
echo "output directory exists"
else
mkdir $dir/converted_images
fi
ls *.png | grep "_C" |
# head -n 2 |
while read line
40.980235 28.873541 0.012151616499442587 1 Other Great Outdoors
41.034078 28.978972 0.012931995540691193 1 Other Great Outdoors
41.046735 28.896596 0.015719063545150503 1 Mall
40.990475 29.029119 0.003121516164994426 1 Other Great Outdoors
40.97844 28.817632 0.015050167224080268 0 Airport
40.977695 28.871899 0.007915273132664437 1 Mall
40.996962 28.886297 0.012263099219620958 1 Mall
40.991528 28.797054 0.002006688963210702 0 University
41.036178 28.984324 0.006465997770345597 1 Other Great Outdoors
41.06311 28.992319 0.006131549609810479 1 Mall
40.980235 28.873541 0.014592458579318224
41.034078 28.978972 0.012854694343934488
40.990475 29.029119 0.012164349647686154
40.977695 28.871899 0.011450199961912016
41.046735 28.896596 0.011212150066653971
40.97844 28.817632 0.010664635307560465
40.991528 28.797054 0.009641020757950867
40.996962 28.886297 0.009045896019805752
41.036178 28.984324 0.008331746334031612
41.06311 28.992319 0.008188916396876786
#include<iostream>
#include<string>
#include<chrono>
class ProcessingTime{
public:
ProcessingTime(const std::string& name = "Process", bool start = true) :
m_name(name),
m_isActive(start)
{
reg_id y_id x_id y(center) x(center) hospital
1 1 1 34.6415625 135.441875 0
2 1 2 34.6415625 135.445625 1
3 1 3 34.6415625 135.449375 0
4 1 4 34.6415625 135.453125 0
5 1 5 34.6415625 135.456875 0
6 1 6 34.6415625 135.460625 0
7 1 7 34.6415625 135.464375 0
8 1 8 34.6415625 135.468125 0
9 1 9 34.6415625 135.471875 0
@gghatano
gghatano / EvalSecI.py
Last active August 30, 2019 02:48
PWSCUP2019_publicfile
#!/usr/bin/env python3
"""
Created by Takao Murakami Jun 18, 2019 (last updated: Aug 22, 2019).
Description:
Evaluate security (ID-disclosure).
Usage:
EvalSecR.py [Pseudo-ID Table (in)] [Estimated Table (in)]
"""