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
G = 9.8 | |
def W(v, x, M=55 + 10): | |
return v * ((0.1 * x + 0.05) * M + 0.15 * v**2) | |
def get_speed_by_grad(w, x): | |
lb = 0 | |
ub = 100 | |
for i in range(100): | |
mid = (lb + ub) / 2. |
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
time: 7206.20918088 | |
1597.11241685 (0, 8) | |
1598.21241685 (0, 7) | |
1600.11241685 (0, 6) | |
1602.21241685 (0, 5) | |
1605.71241685 (0, 4) | |
1612.31241685 (0, 5) | |
1613.01241685 (0, 6) | |
1613.61241685 (0, 7) | |
1614.31241685 (0, 8) |
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
time: 1416.48017801 | |
0 (1, 5) | |
1.1 (0, 6) | |
2.1 (0, 7) | |
3.1 (0, 8) | |
4.2 (0, 9) ローギア足りてねえ! | |
5.3 (0, 8) | |
8.0 (0, 7) | |
208.107849346 (0, 6) | |
210.507849346 (0, 5) |
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.600000 7.750000 | |
0.410000 7.740000 | |
0.210000 7.700000 | |
0.010000 7.670000 | |
-0.130000 7.650000 | |
-0.260000 7.640000 | |
-0.320000 7.690000 | |
-0.310000 7.700000 | |
-0.370000 7.730000 | |
-0.370000 7.720000 |
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.60 205.626 | |
0.41 194.368 | |
0.21 200.000 | |
0.01 200.000 | |
-0.13 200.000 | |
-0.26 200.000 | |
-0.32 200.000 | |
-0.31 200.000 | |
-0.37 200.000 |
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
UVa,problem,page | |
00100,The 3n + 1 problem,194 | |
00101,The Blocks Problem,41 | |
00102,Ecological Bin Packing,80 | |
00103,Stacking Boxes,185 | |
00104,Arbitrage *,162 | |
00105,The Skyline Problem,80 | |
00106,Fermat vs. Phytagoras,218 | |
00107,The Cat in the Hat,196 | |
00108,Maximum Sum *,115 |
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
14485334 メインページ | |
3868888 特別:検索 | |
3200603 蒼穹のファフナー | |
1988967 星野源 | |
1949810 - | |
1861189 成宮寛貴 | |
994357 古坂大魔王 | |
895506 逃げるは恥だが役に立つ | |
838400 新垣結衣 | |
835900 真田信繁 |
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 argparse | |
import os | |
from urllib2 import urlopen, URLError, HTTPError | |
from urllib import urlretrieve | |
url_root = 'https://dumps.wikimedia.org/other/pageviews' | |
def download_file_by_read(url, target_folder): | |
# Open the url | |
try: |
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
#include <bits/stdc++.h> | |
using namespace std; | |
const double INF = 1e100; | |
const int SH = 3, SW = 5; | |
const int L = 120; | |
const int dh[] = {-1, 0, 1, 0}; | |
const int dw[] = {0, 1, 0, -1}; |
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
#include "bipartite-mincost.cpp" | |
using namespace std; | |
class Image{ | |
public: | |
int H, W; | |
vector<vector<int>> data; | |
vector<vector<bool>> visited; | |
void load_image(string name){ |
OlderNewer