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
public class UnkoChinkoManko { | |
public UnkoChinkoManko() { | |
while(true) { | |
System.out.println("うんこちんこまんこ\n"); | |
} | |
} | |
} |
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
proc univariate data=monkey_1_1 normal plot; | |
var HEIGHT; | |
output out=wk1 n=n mean=mean std=std median=median; | |
run; |
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
# 台形の面積を求める | |
a = 2 | |
b = 3 | |
h = 4 | |
daikei = (a + b) * h / 2 | |
print("台形の面積は", daikei, "cm2") |
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
# 台形の面積をコマンドライン入力から求める | |
a = input("上辺? ") | |
a = float(a) | |
b = input("下辺? ") | |
b = float(b) | |
h = input("高さ? ") | |
h = float(h) | |
daikei = (a + b) * h / 2 | |
print("台形の面積は", daikei, "cm2") |
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
# 台形の面積コマンドライン入力から求める | |
# 上辺とか下辺が同じであればメッセージを変更する | |
DAIKEI = "台形" | |
HEIHOU = "平方四辺形" | |
a = float(input("上辺? ")) | |
b = float(input("下辺? ")) | |
h = float(input("高さ? ")) | |
daikei = (a + b) * h / 2 | |
if a == b: | |
str = HEIHOU |
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
/** | |
* 標本に対しての平均値・標準偏差・偏差値を返す | |
* Returns the mean, standard deviation, and deviation for a sample | |
* @author doraiso | |
* | |
*/ | |
public class DiviasionValue { | |
/** | |
* 正規化した場合の標準偏差 Standard deviation when normalized |
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
package algorithm.birthday; | |
/** | |
* n人中、k人が同じ誕生日である確率p(パーセンテージ)を求める | |
* Display the probability p (percentage) that k people out of n have the same birthday. | |
* @author ryosuke | |
* | |
*/ | |
// TODO n人中k人が同じ誕生日である確率を求めたが、n人中2~k人が同じ誕生日を求める確率を求めたい。 |
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
// ==UserScript== | |
// @name kimetsu2kmb | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1.4 | |
// @description 鬼滅の刃をキルミーベイベーにする | |
// @author doraiso | |
// @include http://* | |
// @include https://* | |
// @exclude https://twitter.com/* | |
// @grant none |
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
/** | |
LCM_Sum.java | |
複数の最小公倍数の積を求める | |
Java program to calculate the product of multiple least common multiples. | |
**/ | |
import java.util.ArrayList; | |
public class LCM_Sum { | |
public static void main(String[] args) { |