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 scala.annotation.tailrec | |
/** | |
* Created by nakam on 2017/05/29. | |
*/ | |
object Test { | |
def main(args: Array[String]): Unit = { | |
val dividend = 9 // 割られる数 | |
val divisor = 74 // 割る数 |
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 scala.collection.immutable.Stream.Empty | |
/** | |
* 循環小数の検出 | |
* Created by nakam on 2017/05/14. | |
*/ | |
object DivideTest { | |
def main(args: Array[String]): Unit = { |
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 scala.io._ | |
object Main { | |
val L = 10 | |
val X = 0 | |
val Y = 1 | |
val EMPTY = 0 | |
val BLACK = 1 | |
val WHITE = 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
import java.util.Scanner; | |
public class Othello_CUI { | |
private static final int L = 10, | |
X = 0, | |
Y = 1, | |
EMPTY = 0, | |
BLACK = 1, | |
WHITE = 2, | |
DRAW = 3, |