Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rishabhdeepsingh/competitive
Competitive coding templates for C++, Java, Kotlin
https://github.com/rishabhdeepsingh/competitive
class competitive competitive-coding competitive-programming contest cpp java-11 java-8 javascript kotlin programming
Last synced: about 1 month ago
JSON representation
Competitive coding templates for C++, Java, Kotlin
- Host: GitHub
- URL: https://github.com/rishabhdeepsingh/competitive
- Owner: rishabhdeepsingh
- License: gpl-3.0
- Created: 2018-03-25T08:41:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-02T11:32:57.000Z (3 months ago)
- Last Synced: 2024-09-30T14:04:47.146Z (about 2 months ago)
- Topics: class, competitive, competitive-coding, competitive-programming, contest, cpp, java-11, java-8, javascript, kotlin, programming
- Language: C++
- Homepage:
- Size: 6.84 MB
- Stars: 15
- Watchers: 2
- Forks: 7
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastIO For Different Languages in Competitive Programming
Fast Input and output Class for Competitive Coding.
# Settings
## Competitive Companion
[Chrome](https://chrome.google.com/webstore/detail/competitive-companion/cjnmckjndlpiamhfimnnjmnckgghkjbl) | [Firefox](https://addons.mozilla.org/en-US/firefox/addon/competitive-companion/)## [C++](https://github.com/rishabhdeepsingh/Competitive/tree/master/Cpp)
Install [Jhelper](https://github.com/AlexeyDmitriev/JHelper) plugin and import the Cpp project in Clion## [Java](https://github.com/rishabhdeepsingh/Competitive/tree/master/Java)
Install [CHelper](https://github.com/EgorKulikov/idea-chelper) plugin and import the Java Project in Intellij Idea## [Kotlin](https://github.com/rishabhdeepsingh/Competitive/tree/master/Kotlin)
Create a new Project and use the template file.# Bash testing for C++
In ubuntu we can use the following code to check the time
time ./a.out < in
time ./generator | ./a
## Using generator
#!/bin/bash
g++ -o gen gen.cpp
g++ -o main main.cpp
g++ -o brute brute.cpp
for((i = 1;;++i));do
echo $i
./gen $i > inputt
diff -w <(./main < inputt) <(./brute < inputt) || break
doneTo copy a single file to multiple Files
echo a.cpp b.cpp d.cpp | xargs -n 1 cp template.cpp
## Compile
### Normal
g++ -O2 -std=c++17 -Wno-unused-result -Wshadow -Wall -o "%e" "%f"
### Debugging
g++ -DLOCAL -std=c++17 -Wshadow -Wall -o "%e" "%f" -fsanitize=address -fsanitize=undefined -D_GLIBCXX_DEBUG -g