Giter Club home page Giter Club logo

fast-io-java's Introduction

๐Ÿ”ฅ fast-io-java

A JAVA template for faster I/O times.

How to use ?

Copy this template in your local system and write your code using this template to write CP friendly codes.

Accepted By

Template

import java.util.*;
import java.io.*;

public class Main{
    static class FastReader{
        BufferedReader br;
        StringTokenizer st;
        public FastReader(){
            br=new BufferedReader(new InputStreamReader(System.in));
        }
        String next(){
            while(st==null || !st.hasMoreTokens()){
                try {
                    st=new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
        int nextInt(){
            return Integer.parseInt(next());
        }
        long nextLong(){
            return Long.parseLong(next());
        }
        double nextDouble(){
            return Double.parseDouble(next());
        }
        String nextLine(){
            String str="";
            try {
                str=br.readLine().trim();
            } catch (Exception e) {
                e.printStackTrace();
            }
            return str;
        }
    }
    static class FastWriter {
		private final BufferedWriter bw;

		public FastWriter() {
			this.bw = new BufferedWriter(new OutputStreamWriter(System.out));
		}

		public void print(Object object) throws IOException {
			bw.append("" + object);
		}

		public void println(Object object) throws IOException {
			print(object);
			bw.append("\n");
		}

		public void close() throws IOException {
			bw.close();
		}
	}
    public static void main(String[] args) {
        try {
            FastReader in=new FastReader();
            FastWriter out = new FastWriter();
            int testCases=in.nextInt();
            while(testCases-- > 0){
                // write code here
            }
            out.close();
        } catch (Exception e) {
            return;
        }
    }
}

Action Items

Customize this template according to your own coding style to get the best out of it.

fast-io-java's People

Contributors

dr0nser avatar

Stargazers

Rahul Anand avatar Shubham Bisht avatar DEVASHISH avatar Siiuuuu avatar Akshansh Sharma avatar Gokul MS avatar Jack D.  avatar Faiaz Ibne Ahsan avatar  avatar Shuvam Mandal avatar  avatar Ankita Thombre avatar Nimit Trevadiya avatar Sachin Singh Rajpoot avatar Keyur Gandhi avatar Hrithik Goswami avatar Gaurav Patil avatar Arshiya Moin fw16-409 avatar  avatar vishakhavel avatar  avatar  Kartik Sharma avatar Rohit Sachdeva avatar Karthik P Rashinkar avatar Aniket Dhokane avatar  avatar Pedro Tavares avatar Hariharan E avatar

Watchers

 avatar

fast-io-java's Issues

Characters and Arrays

Can you please update the template to have methods for char data type and for taking array as input? maybe a function using generics

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.