From d226c560ab3ea9acae7cb9d3dbb5ed22df3de608 Mon Sep 17 00:00:00 2001 From: Aadhitya A Date: Thu, 25 Feb 2021 15:59:29 +0530 Subject: [PATCH] Modify code for proper readability Signed-off-by: Aadhitya A --- codeit/codeitMeta.py | 18 ++++++++++++------ setup.py | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/codeit/codeitMeta.py b/codeit/codeitMeta.py index 6c3112e..e740d42 100644 --- a/codeit/codeitMeta.py +++ b/codeit/codeitMeta.py @@ -9,12 +9,11 @@ def template_cp(): ios_base::sync_with_stdio(false); cin.tie(NULL); -/* This is needed as most contests use this format */ -#ifndef ONLINE_JUDGE - freopen("input.txt", "r", stdin); - freopen("output.txt", "w", stdout); - //If you do not need error txt, remove it accordingly -#endif + /* This is needed as most contests use this format */ + #ifndef ONLINE_JUDGE + freopen("input.txt", "r", stdin); + freopen("output.txt", "w", stdout); + #endif //Code @@ -90,7 +89,14 @@ def template_agg(): int main() { fast_cin(); + #ifndef ONLINE_JUDGE + freopen("in.in", "r", stdin); + freopen("out.out", "w", stdout); + //Edit names accordingly + #endif + //Code + return 0; } """ diff --git a/setup.py b/setup.py index afd0154..b7d6936 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name='cxit', packages = find_packages(), - version='1.0.0', + version='1.0.1', author='Aadhitya A', author_email='aadhitya864@gmail.com', description = 'A CLI tool to create CPP files for any contest',