Skip to content

minuk8932/Algorithm_BaekJoon

Repository files navigation

Baek-Joon Online Judge (BOJ)

  • Site that is solving algorithm problem.
  • Click on the logo above to go to that site.
  • This project is written in Java.
  • Java(IntelliJ) version : IntelliJ (2019.3.4)
  • Java(TM) SE Runtime Environment (build 1.8.0_91-b14)



Judgement Environment

  • Ubuntu 16.04.1 LTS 64-bit

Java:

  • compile: javac -J-Xms128m -J-Xmx512m -encoding UTF-8 Main.java
  • execute: java -Xms128m -Xmx512m -Xss64m -Dfile.encoding=UTF-8 Main
  • version : java version "1.8.0_91"
  • time limit : +5sec
  • memory limit : +512MB

Other languages env
ref other languages



Available language

Total 57

Commonly used   Java
  C++, C++11, C++14, C++17
  C, C11
  Python3, PyPy, PyPy3



Configuration

To see a specific problem, follow the path below.
src > ${algorithm_categories} > Boj${problem_number}.java

  • The class name must be changed to main before submitting the code.
Algorithm_BaekJoon
├── .classpath
├── .git
├── .project
├── .settings
├── LICENSE
├── README.md
├── bin
├── src
│   ├── default (algorithm category packages)
│   │   ├── Boj0000.java
...



Boj1003 example

1003 Solution

package dynamic_programming;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Boj1003 {						// must be changed name to 'Main' before submit.
	private static int[] chk = new int[2];
	private static final String SPACE = " ";
	private static final String NEW_LINE = "\n";

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int T = Integer.parseInt(br.readLine());

		StringBuilder sb = new StringBuilder();
		while (T-- > 0) {
			int num = Integer.parseInt(br.readLine());
			chk = new int[2];
			
			//fibonacci(num); - memoization to fibonacci implementation.
			sb.append(chk[0]).append(SPACE).append(chk[1]).append(NEW_LINE);
		}
		System.out.println(sb.toString());
	}
}



Please note that common package's class

  • refer to this link such as Point, Coordinate ... so on.



Judgement format

  • Please refer to this link for more information. (only korean)



Reference

solved.ac tier

Sites   SOLVED.AC Tier Rank
  Boj Personal Rank Exponential_e
  Exponential-e Blog written by minuk8932 for Algorithms and CS concepts (only Korean)
  OEIS Search sequence



License

Apache 2.0 License



Contact