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
"Dein Scripts | |
if &compatible | |
set nocompatible | |
endif | |
set runtimepath+=$HOME/.cache/dein/repos/github.com/Shougo/dein.vim | |
" Required: | |
if dein#load_state('$HOME/.cache/dein') | |
call dein#begin('$HOME/.cache/dein') |
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 <stdio.h> | |
#define MAX_STUDENT 100 | |
int max(int a, int b) { | |
if (a < b) return b; | |
else return a; | |
} | |
int main() { |
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 graphviz | |
import heapq | |
import copy | |
import math | |
source_information = [] | |
r = 2 | |
def input_information(): |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Globalization; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Runtime.Versioning; | |
using System.Transactions; | |
using MyGAEnvironments; |
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 <iostream> | |
#include <random> | |
#include <set> | |
#include <vector> | |
#include <algorithm> | |
class Environment1 { | |
public: | |
static double fitness(const std::string& check) { | |
double ret = 0; |
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; | |
int main() { | |
int N; | |
cin >> N; | |
vector<string> state_name(N); | |
for (int i = 0; i < N; i++) cin >> state_name[i]; | |
vector<pair<int, int>> stationary_probability(state_name.size()); | |
for (int i = 0; i < state_name.size(); i++) { |
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 <stdio.h> | |
int main (int argc, char **argv) { | |
int year = 0, check = 0; | |
scanf("%d", &year); | |
char ok[] = "leap", ng[] = "not leap"; | |
__asm__ volatile("mov %%rcx, %%rax;\n\t" | |
"mov $400, %%rbx;\n\t" | |
"idiv %%rbx;\n\t" |
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 socket | |
from sympy import * # noqa | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.connect(('zerois-o-reiwa.seccon.jp', 23615)) | |
x = symbols('x') | |
while True: | |
number = s.recv(2048) | |
print('number is', number) |
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
\begin{align} | |
x&=1\\ | |
x&=0.1\\ | |
x&=0.01\\ | |
&\vdots | |
\end{align} |
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 <iostream> | |
#include <vector> | |
#include <algorithm> | |
std::vector<int> search_array; | |
bool binary_search(int search_value) { | |
int lower_range = 0, higher_range = (int)search_array.size() - 1; | |
while (higher_range >= lower_range) { | |
int median = lower_range+ (higher_range - lower_range) / 2; |
NewerOlder