Code Monkey home page Code Monkey logo

algorithm_baekjoon's Introduction

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

algorithm_baekjoon's People

Contributors

minuk8932 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.