Skip to content

lorenzotinfena/competitive-go

Repository files navigation

competitive-go

It currently supports only github.com/lorenzotinfena/goji library

Supported platforms

  • Codeforces
  • LeetCode

Usage

For each problem:

  1. You can create and open a codespace on this repo or if you want to run it locally: open the folder in vscode and using remote container extension, select reopen in container
  2. Install all tools suggested by vscode
  3. Copy paste an example testcase in input.txt
  4. Code and debug in solution.go P.s. Use io for I/O operations
  5. Run Aggregate and copy for {platform} command and paste the self-contained code on your platform.

If you want to solve multiple problems simultanously (like in contests) you can just backup your multiple solution.go somewhere.

Limitations

All the code (main package + non standard libraries imported (testing files are excluded)):

  • Should have all the exported and unexported names different
  • In the same file: literal strings or characters cannot contain aliases of non standard libraries
  • Should be formatted with gofmt
  • Shouldn't import packages with a local path
  • Shouldn't import standard libraries with the dot '.'
  • Between any first line of a function/method and the first previous empty line or the first line there must be either nothing either the comment related to that function/method

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks