Skip to content

Instantly share code, notes, and snippets.

View volyx's full-sized avatar

Dmitrii Volykhin volyx

View GitHub Profile
@volyx
volyx / Main2.java
Created March 5, 2017 12:00
Vk Cup 2017 B
import javafx.util.Pair;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;
import java.util.function.ToIntFunction;
public class Main2 {
public static void main(String[] args) throws FileNotFoundException {
@volyx
volyx / Main2.java
Created March 5, 2017 12:00
Vk Cup 2017 B
import javafx.util.Pair;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;
import java.util.function.ToIntFunction;
public class Main2 {
public static void main(String[] args) throws FileNotFoundException {
@volyx
volyx / Main2.java
Created March 5, 2017 12:00
Vk Cup 2017 B
import javafx.util.Pair;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.*;
import java.util.function.ToIntFunction;
public class Main2 {
public static void main(String[] args) throws FileNotFoundException {
@volyx
volyx / Main.java
Created March 5, 2017 11:59
VK cup 2017 A
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws FileNotFoundException {
package net.swarmdb;
import io.netty.bootstrap.Bootstrap;
import io.netty.buffer.Unpooled;
import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
#include <iostream>
using namespace std;
void read()
{
int c;
std::cin >> c;
define([
'backbone',
], function(Backbone) {
var feedPhotoGrid = Backbone.View.extend({
options: {
rowSelector: '.feed-photo-row',
cellSelector: '.feed-photo-cell',
@volyx
volyx / Main.java
Created November 27, 2015 21:24
Mergesort
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.Scanner;
/*
5
2 3 9 2 9
10
var system = require('system');
if (system.args.length < 3) {
console.log("Missing arguments.");
phantom.exit();
}
var server = require('webserver').create();
var port = parseInt(system.args[1]);
var urlPrefix = system.args[2];
package com.company;
import java.util.AbstractList;
import java.util.LinkedList;
public class Main {
public static void main(String[] args) {
B b = new B<Integer>();