300億円欲しい

メジャーリーグのデータ解析します

C++

RからC++を使いたい (Rcppの練習)

R C++

Rは便利ですが, 重たい計算をさせると遅いです. 計算が重たい部分だけ他の言語を利用すれば, 早く計算できますね. 今回はRからC++を利用します. Rcppというパッケージを使えばいいです. 便利で速い計算環境が構築できるんじゃないですかね. RからC++を使う R…

AOJ 0009

問題 n 以下の素数の数を数えろ、という内容。 Prime Number Write a program which reads an integer n (n ≤ 999999) and prints the number of prime numbers which are less than or equal to n. A prime number is a natural number which has exactly t…

AOJ 0003

問題 GCD and LCM Write a program which computes the greatest common divisor (GCD) and the least common multiple (LCM) of given a and b (0 Input Input consists of several data sets. Each data set contains a and b separated by a single space…

AOJ 0003

初心者のC++ 問題 Is it a Right Triangle? Write a program which judges wheather given length of three side form a right triangle. Print "YES" if the given sides (integers) form a right triangle, "NO" if not so. Input Input consists of sever…