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
FROM nvidia/cuda:10.1-base-ubuntu16.04 AS base | |
ENV LANG C.UTF-8 | |
ENV PYTHON_VERSION 3.7.6 | |
ENV PATH /python/$PYTHON_VERSION:$PATH | |
# Install depenedent packages | |
RUN apt-get autoclean | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
wget \ |
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.StdIn | |
object HatenaQuiz { | |
def rot(n: Int)(str: String): String = | |
for { | |
c: Char <- str | |
} yield { | |
val cAddN = c.toByte + n | |
c match { | |
case upper: Char if upper.isUpper => |