- Dockerfile
FROM ruby:2.3.3
# install necessary packages
RUN apt-get update -qq && apt-get install -y build-essential nodejs npm sqlite3 --no-install-recommends
use std::io; | |
use std::collections::HashMap; | |
#[derive(Debug)] | |
enum JSONToken { | |
OpenObject, | |
CloseObject, | |
OpenArray, | |
CloseArray, | |
Colon, |
use std::io; | |
// fn tokenize(line: CharIndices) { | |
// } | |
// | |
// fn parse(line: &str, l: usize) { | |
// let n = line.len(); | |
// let mut idx = l; | |
// | |
// let indices = line.char_indices(); |
FROM ruby:2.3.3 | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs --no-install-recommends && rm -rf /var/lib/apt/lists/* | |
ENV INSTALL_PATH /app | |
ENV LANG C.UTF-8 | |
RUN mkdir $INSTALL_PATH | |
WORKDIR $INSTALL_PATH | |
COPY Gemfile ./ | |
COPY Gemfile.lock ./ | |
RUN bundle install |
package atcoder.arc.arc068; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.PrintWriter; | |
import java.util.Arrays; | |
import java.util.InputMismatchException; | |
public class Main { | |
private static final int MOD = 1000000007; |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
public class Moneymanager { | |
public int getbest(int[] a, int[] b, int X) { | |
List<int[]> w = new ArrayList<>(); | |
int n = a.length; | |
for (int i = 0; i < n ; i++) { |
#include <bits/stdc++.h> | |
using namespace std; | |
#define ALL(x) x.begin(),x.end() | |
#define DBG(x) cout << #x << " = " << x << endl | |
typedef long long ll; | |
const ll MOD = 1000000007; | |
const int MAXN = 310; | |
int n; |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.PrintWriter; | |
import java.util.Arrays; | |
import java.util.InputMismatchException; | |
public class F { | |
public static void main(String[] args) { | |
InputReader in = new InputReader(System.in); | |
PrintWriter out = new PrintWriter(System.out); |