# java

/Tag: java

## Playrix Codescapes Cup (Codeforces Round #413, rated, Div. 1 + Div. 2), problem: (G) Cut the pie Solution In JAVA

By |2017-07-24T13:31:05+06:00July 24th, 2017|Categories: Java, Programming||

import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream [...]

## Codeforces Round #412 (rated, Div. 1, based on VK Cup 2017 Round 3), problem: (E) Blog Post Rating Solution In JAVA

By |2017-07-24T02:42:50+06:00July 24th, 2017|Categories: Java, Programming||

import static java.lang.Double.parseDouble; import static java.lang.Integer.parseInt; import static java.lang.Long.parseLong; import static java.lang.Math.min; import static java.lang.System.exit; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.util.Random; import java.util.StringTokenizer; public class E { static BufferedReader in; static PrintWriter out; static StringTokenizer tok; static int [...]

## Codeforces Round #412 (rated, Div. 2, base on VK Cup 2017 Round 3), problem: (F) Perishable Roads Solution In JAVA

By |2017-07-24T02:40:45+06:00July 24th, 2017|Categories: Java, Programming||

import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.util.StringTokenizer; public class Div2_412F { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); PrintWriter printer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out))); int numV = Integer.parseInt(reader.readLine()); long[][] [...]

## Codeforces Round #409 (rated, Div. 2, based on VK Cup 2017 Round 2), problem: (E) Vulnerable Kerbals Solution in JAVA

By |2017-07-24T01:31:20+06:00July 24th, 2017|Categories: Java, Programming||

import java.util.ArrayList; import java.util.Scanner; /* 4 10 2 4 6 8 4 10 2 9 1 0 */ public class e { static ArrayList<Integer>[] gcdLists; public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(),m=in.nextInt(); boolean[] forbid = new [...]

## Drawing A Hollow Rectangle Using Java

By |2017-04-07T22:11:51+06:00October 29th, 2016|Categories: Java, Programming||

hello people, here is easy code for drawing a hollow rectangle using java. this code displays a rectangle of given length and width. Sample input: 4 5 Sample output ***** *      * *      * ***** import java.util.Scanner; public class hollowRectangle{ [...]

## Drawing Isosceles Triangle of A Given Height Using Java

By |2017-04-07T22:11:51+06:00October 26th, 2016|Categories: Java, Programming||

hey everyone so i tried write a code on drawing isosceles. if you have any easier ways to solve it do let me know... import java.util.Scanner; public class task{ public static void main(String args[]){ Scanner anik = new Scanner(System.in); System.out.println("give a line number"); int [...]