From 0c229a32e7849dceaa51011496f5439d91026a99 Mon Sep 17 00:00:00 2001 From: Amit2508 Date: Fri, 18 Aug 2023 11:26:30 +0530 Subject: [PATCH] Included test cases to make it acceptable at CN. --- .DS_Store | Bin 0 -> 6148 bytes Number theory-1/.vscode/c_cpp_properties.json | 18 +++++++++ Number theory-1/.vscode/launch.json | 13 +++++++ Number theory-1/.vscode/settings.json | 35 ++++++++++++++++++ Number theory-1/GCD.cpp | 14 +++++-- 5 files changed, 76 insertions(+), 4 deletions(-) create mode 100644 .DS_Store create mode 100644 Number theory-1/.vscode/c_cpp_properties.json create mode 100644 Number theory-1/.vscode/launch.json create mode 100644 Number theory-1/.vscode/settings.json diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..911bcc84f18088371f71170d4a139eef765a449d GIT binary patch literal 6148 zcmeHKJ5Iwu5Ph4tFan8`lzRb?asv|?(b0q+6oL|@SdLIqq;o^b0jRhDB^RKe3oTrS zH@l+{D}hiUKr_btz>a@jhF`ag=ahYNjF{Z<5^Wk)5ryYt5tMmRogu`VKZ8QdqfjR@tc-fNrfAo3( zUr(|tW55{rR}8o$@8%solGfIhhm%_CspnJ?iK`+mQaA~vn6Xld_ozW=_c9@7id95f QDE1=|Xt2Q;_)!Ml0g_Twh5!Hn literal 0 HcmV?d00001 diff --git a/Number theory-1/.vscode/c_cpp_properties.json b/Number theory-1/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..980fd57 --- /dev/null +++ b/Number theory-1/.vscode/c_cpp_properties.json @@ -0,0 +1,18 @@ +{ + "configurations": [ + { + "name": "macos-clang-arm64", + "includePath": [ + "${workspaceFolder}/**" + ], + "compilerPath": "/usr/bin/clang", + "cStandard": "${default}", + "cppStandard": "${default}", + "intelliSenseMode": "macos-clang-arm64", + "compilerArgs": [ + "" + ] + } + ], + "version": 4 +} \ No newline at end of file diff --git a/Number theory-1/.vscode/launch.json b/Number theory-1/.vscode/launch.json new file mode 100644 index 0000000..cbe52a3 --- /dev/null +++ b/Number theory-1/.vscode/launch.json @@ -0,0 +1,13 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "C/C++ Runner: Debug Session", + "type": "lldb", + "request": "launch", + "args": [], + "cwd": "/Users/amitgoel/Documents/open source contributions/Coding-Ninjas-Competitive-Programming/Number theory-1", + "program": "/Users/amitgoel/Documents/open source contributions/Coding-Ninjas-Competitive-Programming/Number theory-1/build/Debug/outDebug" + } + ] +} \ No newline at end of file diff --git a/Number theory-1/.vscode/settings.json b/Number theory-1/.vscode/settings.json new file mode 100644 index 0000000..3ad35cc --- /dev/null +++ b/Number theory-1/.vscode/settings.json @@ -0,0 +1,35 @@ +{ + "C_Cpp_Runner.cCompilerPath": "clang", + "C_Cpp_Runner.cppCompilerPath": "clang++", + "C_Cpp_Runner.debuggerPath": "lldb", + "C_Cpp_Runner.cStandard": "", + "C_Cpp_Runner.cppStandard": "", + "C_Cpp_Runner.msvcBatchPath": "", + "C_Cpp_Runner.useMsvc": false, + "C_Cpp_Runner.warnings": [ + "-Wall", + "-Wextra", + "-Wpedantic", + "-Wshadow", + "-Wformat=2", + "-Wconversion", + "-Wnull-dereference" + ], + "C_Cpp_Runner.enableWarnings": true, + "C_Cpp_Runner.warningsAsError": false, + "C_Cpp_Runner.compilerArgs": [], + "C_Cpp_Runner.linkerArgs": [], + "C_Cpp_Runner.includePaths": [], + "C_Cpp_Runner.includeSearch": [ + "*", + "**/*" + ], + "C_Cpp_Runner.excludeSearch": [ + "**/build", + "**/build/**", + "**/.*", + "**/.*/**", + "**/.vscode", + "**/.vscode/**" + ] +} \ No newline at end of file diff --git a/Number theory-1/GCD.cpp b/Number theory-1/GCD.cpp index c9fbb46..338ec88 100644 --- a/Number theory-1/GCD.cpp +++ b/Number theory-1/GCD.cpp @@ -34,8 +34,14 @@ ll gcd(ll x, ll y) return gcd(y, x%y); } int main() -{ - ll x, y; - cin>>x>>y; - cout<> numTest; + + for(int i = 0; i< numTest; i++){ + ll x, y; + cin>>x>>y; + cout<