From 2574cb19733b76b009de4ef996637308299e2dce Mon Sep 17 00:00:00 2001 From: htrahddis-hub <68229717+htrahddis-hub@users.noreply.github.com> Date: Sun, 4 Oct 2020 18:00:49 +0530 Subject: [PATCH] code snippets for C++. for CP in codechef and code forces. --- Students/hey.json | 80 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Students/hey.json diff --git a/Students/hey.json b/Students/hey.json new file mode 100644 index 0000000..47b4c97 --- /dev/null +++ b/Students/hey.json @@ -0,0 +1,80 @@ +{ + + + "For loop": + { + "prefix": "fl", + "body": [ + "for(int i=0;i", + "#include ", + "#include ", + "#define lld long long int", + "#define ld long int", + "#define d int", + "#define sort(arr) sort(arr, arr+sizeof(arr)/sizeof(arr[0]))", + "using namespace std;", + "int main(void) ", + "{", + "\tios_base::sync_with_stdio(false); ", + "\tcin.tie(0);", + "\tint t;", + "\tcin>>t;", + "\twhile(t--)", + "\t{", + "\t\tlld n;", + "\t\tcin>>n;", + "\t\tlld ans;", + "\t\t$2", + "\t\tcout< mp;", + "for(lld i=0;i>mp[i];", + "\tmp[i]++;", + "\t$2", + "}", + "map::iterator itr;", + "for (itr = mp.begin(); itr != mp.end(); ++itr)", + "{", + "\t", + "}" + ], + "description": "map template" + }, + +} \ No newline at end of file